Forums / General / Links Description

Links Description

Author Message

Kris Math

Tuesday 14 September 2004 1:52:59 pm

I'm in the process of switching from phpnuke to ezpublish. I have successfuly installed my ezpublish and am working to rebuild my site. I have added a links section and when I try and add a link and then the description, the description does not show up on the website:

Here is an example:

http://www.medicalspouse.com/~kris/ezpublish/index.php/news/links/financial_survival/loans

How can I make the description of the link show up?

Kris

Stian Lindhom

Wednesday 15 September 2004 7:00:36 am

If you are using the standard Link-class included with EZP, which I assume you are, showing the link description would be something like:

{attribute_view_gui attribute=$node.object.data_map.description}

See <b>design/base/override/templates/line/link.tpl</b> for more details.

:)

Regards,
Stian

Kris Math

Thursday 30 September 2004 10:44:17 am

Thank you for your response. I had to register a new username because the boards wouldn't accept my login or send me a new password. I got an email back with an incomplete link to click on. Even when I did copy and paste the partial url into my browser it said that my new password was sent out, but it never was.

But I digress :D

I did check the .tpl file and that line exists.

{attribute_view_gui attribute=$node.object.data_map.description}

Is there another links mod availavble for the ezpublish?

kris

 

Kris Math

Thursday 14 October 2004 10:41:12 am

*bump*

This is what my life looks like. Can anyone help me out? :)

{* Link - Line view *}

<div class="content-view-line">
<div class="class-link">

<h2>{$node.name}</h2>

{section show=$node.object.data_map.description.content.has_content}
<div class="attribute-long">
{attribute_view_gui attribute=$node.object.data_map.description}
</div>
{/section}

{section show=$node.object.data_map.location.has_content}
<div class="attribute-link">
<p><a href="{$node.object.data_map.location.content}">{section show=$node.object.data_map.location.data_text|count|gt( 0 )}{$node.object.data_map.location.data_text|wash}{section-else}{$node.object.data_map.location.content|wash}{/section}</a></p>
</div>
{/section}

</div>
</div>

edit: I did try changing the 0 setting to 1 too.

bisk

Friday 15 October 2004 12:52:08 am

Try changing this line:

{section show=$node.object.data_map.description.content.has_content}

into:

{section show=$node.object.data_map.description.has_content}

Clear the cache and see if it works.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Kris Math

Saturday 16 October 2004 5:47:21 pm

I changed it and it still doesn't work. :( Do you have any other suggestions for me? thanks in advance...

Kris

bisk

Sunday 17 October 2004 1:32:13 am

If you haven't changed the link class, it should work. Are you sure you've added a description to a link or cleared the cache after you've changed that line.

For the description i've got this, which works fine:

{section show=$node.object.data_map.description.has_content}
{attribute_view_gui attribute=$node.object.data_map.description}
{/section}

Other options are:

{section show=$node.object.data_map.description.content.is_empty|not}
{attribute_view_gui attribute=$node.object.data_map.description}
{/section}

or without the section show:

{attribute_view_gui attribute=$node.object.data_map.description}

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Kris Math

Friday 22 October 2004 9:20:29 am

I'm going out on a limb here...but would you consider having a peak at my files and giving me a hand. I just am in over my head with this particular aspect and I'm afraid of messing something up.

kris