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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:55:05
Script start
Timing: Jan 18 2025 15:55:05
Module start 'layout'
Timing: Jan 18 2025 15:55:05
Module start 'content'
Timing: Jan 18 2025 15:55:06
Module end 'content'
Timing: Jan 18 2025 15:55:06
Script end

Main resources:

Total runtime0.5599 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.9219152.6094
Module start 'layout' 0.00600.0044 741.531339.4141
Module start 'content' 0.01040.5481 780.9453668.0156
Module end 'content' 0.55850.0014 1,448.960916.1875
Script end 0.5599  1,465.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6529160.0002
Check MTime0.00140.2582160.0001
Mysql Total
Database connection0.00130.230610.0013
Mysqli_queries0.483586.3413760.0064
Looping result0.00100.1785740.0000
Template Total0.517492.420.2587
Template load0.00270.480320.0013
Template processing0.514791.915020.2573
Template load and register function0.00020.039110.0002
states
state_id_array0.00200.358410.0020
state_identifier_array0.00080.142920.0004
Override
Cache load0.00230.4053650.0000
Sytem overhead
Fetch class attribute can translate value0.00070.117540.0002
Fetch class attribute name0.00110.191190.0001
XML
Image XML parsing0.00190.342340.0005
class_abstraction
Instantiating content class attribute0.00000.003290.0000
General
dbfile0.00360.6374160.0002
String conversion0.00000.003140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs