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

eZ debug

Timing: Jan 18 2025 15:06:51
Script start
Timing: Jan 18 2025 15:06:51
Module start 'content'
Timing: Jan 18 2025 15:06:52
Module end 'content'
Timing: Jan 18 2025 15:06:52
Script end

Main resources:

Total runtime1.0192 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.5859180.8516
Module start 'content' 0.00510.8532 768.4375673.0781
Module end 'content' 0.85830.1607 1,441.5156340.4531
Script end 1.0191  1,781.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3719210.0002
Check MTime0.00160.1535210.0001
Mysql Total
Database connection0.00060.062010.0006
Mysqli_queries0.933191.55682130.0044
Looping result0.00240.24032110.0000
Template Total0.987496.920.4937
Template load0.00190.186420.0009
Template processing0.985596.699020.4928
Template load and register function0.00010.012710.0001
states
state_id_array0.00090.090910.0009
state_identifier_array0.00130.125220.0006
Override
Cache load0.00170.1697650.0000
Sytem overhead
Fetch class attribute can translate value0.00110.108550.0002
Fetch class attribute name0.00130.123090.0001
XML
Image XML parsing0.00100.102250.0002
class_abstraction
Instantiating content class attribute0.00000.001490.0000
General
dbfile0.00410.4038270.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs