Beginner Needs Help!!

Permalink Browser Info Environment
Hi guys and gals,
Hoping someone could help me with an example of the code that goes in both list and detail pages.

I just want to display some basic data in my list and a link to the detail page, thats it!

Have got as far as displaying my list (although validation gives me errors and warnings, seems to work anyway).

Need this done quite quick, so no time to learn XML, will pay for help if need be.

Type: Discussion
Status: New
liquidnexxus
View Replies: View Best Answer
prema520 replied on at Permalink Reply
prema520
Hi LiquidNexus
Shouldn't need too much XML in here apart from the tags that you insert in from the plugin.
Suggest these steps:
1. Create your fields
2. Create some records with some junk data
3. Go to the list view and in the content space put some fields from
the placeholders -- just the fields
4. Save This should give you a list of field values when you look
on the page where the content has been inserted
5. Build HTML around these values
SAMPLE:
<table border="0" cellpadding="5" cellspacing="0" style="color:#888; width:100%">
<tr>
<!--<th style="font-size:13px; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#Aaddee">Course Title</th>-->
    <td colspan="4" style="font-size:1.5em; font-family:arial,helvetica,sans-serif;  color:#189cc9; width:220px;"><img style="padding-right:10px; margin-bottom:-10px" src="/site2/index.php/download_file/view_inline/828/" width="35" height="35" /><field name="Title"/></td>     
</tr>
<tr>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Region</th>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:320px; background-color:#efefef">Course info website</th>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Level of education</th>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Topic </th>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Format</th>
<th style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Duration</th>
<td style="font-size:1em; font-family:arial,helvetica,sans-serif; color:#7a7a7a; width:220px; background-color:#efefef">Detail</td>
</tr>
<tr>


Suggest post back if you want more help -- we'll monitor the thread
Prema
liquidnexxus replied on at Permalink Reply
liquidnexxus
Hi premapix,
This produced similar results as I had, but thank you very much for the guidance.
One problem with the table code....I get the table headings repeated for every listing...

Next I was hoping to:
- Put sort filter at the top of the listing
- Put a search box at the top of the listing
- Link List to Detail Page
jgarcia replied on at Permalink Best Answer Reply
jgarcia
Put the table header code in the List Template Header. For example...

Header:
<table>
   <tr>
      <td>Column 1</td>
      <td>Column 2</td>
   </tr>


Then in your List Template Content, just put a single row:
<tr>
      <td><field name="Whatever" /></td>
      <td><field name="Whatever" /></td>
   </tr>


And in the List Template Footer, end the table:
</table>


The other settings you mentioned (sorting, adding a search box) are controlled in the blocks settings.
liquidnexxus replied on at Permalink Reply
liquidnexxus
Wow, that worked a treat, I can even link to the detailed page, easy!
Now figuring out how to style a table but that should be straight forward:
Seems to be inheriting ugly styling
- any reccomendations on CSS? is there a default CSS or should I create one? if so where should I store the table.css file? (actually looking for this for the whole site, I cant seem to get rid of those ugly tables

- Any suggestions for avoiding a full page reload? My detail page is ONE subpage from listing...
liquidnexxus replied on at Permalink Reply
liquidnexxus
Display data on detail page.

I am trying to do this but it defaults to current page all the time. Any ideas?
jgarcia replied on at Permalink Reply
jgarcia
In the Data Display block's settings you have the option to specify what page the details are shown on.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.