Field Contents

More
14 years 10 months ago #3108 by sjb1963
Field Contents was created by sjb1963
Hello,
I have been working on this for several hours now and can't make sense of it.

I have a field (type "file"). The I am trying to display the contents of this field (or any other for that matter) specifically without having to display EVERY field defined on the template. Should be simple enough, right?

Not so.

I've been looking over the templating tutorial which is in French and out of date (so the translated version says).

Anyone else figured out how to do this?

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #3112 by kspoddar
Replied by kspoddar on topic Field Contents
Hi SJB

Not sure what problem you are facing. If you could give some more details, screenshots?

Cheers!
Kirti

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #3228 by sjb1963
Replied by sjb1963 on topic Field Contents
Hello kspoddar,

I am trying to display the contents of a simple text field.

In the template, the code to display ALL fields appears to be:
Code:
<?php echo $field->label; ?> & <?php echo $field->display; ?>
for field label and content respectively.

I only want to display the content of 1 text field. I have been trying to follow the template tutorial and can't seem to make it work for one single text field. I don't know if the template coding has changed or not, but it's not working. I would appreciate any insight anyone can give on this.

Steve

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.353 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline