Help ... Highlight the article

Author Message

Muhammad Khalid Majeed

Thursday 06 May 2004 3:56:30 am

I have # of different articles. I want to hightligh one article that will apear on top always or till the time i want. and remaining article will display after that article. Is there any way to do this.

Muhammad Khalid
Software Engineer
www.webgurru.net

Bjørn Kaarstein

Thursday 06 May 2004 3:58:19 am

If you sort by priority, you can choose which article to display first.

Regards Bjørn

Muhammad Khalid Majeed

Thursday 06 May 2004 4:02:23 am

Is there any other way regardless priority?

Muhammad Khalid
Software Engineer
www.webgurru.net

Bjørn Kaarstein

Tuesday 11 May 2004 6:44:40 am

Well, you could do it the nasty way, and fetch the article you wan't directly by its node...

Regards Bjørn

Vivek Chopra

Tuesday 11 May 2004 9:42:12 am

I haven't tried this but just an idea.

How about modifying the article clas and adding a checkbox for displaying this article on top. So if the checkbox is checked that article will be displayed on the top.

Just like how the sticky messages in the forum work. You can check the code in the forum template files.
let me know if this works.

Vivek

Mark Gilbert

Tuesday 11 May 2004 11:47:43 am

You would still have to edit the template to fetch those articles that have the box checked. Either way you are writing fetch code into the template used to display the list of articles. The check box method would be easier from a maintance perspective. Plus you could filter out the checked items when you display the rest of the articles.

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 16:10:35
Script start
Timing: Jan 18 2025 16:10:35
Module start 'layout'
Timing: Jan 18 2025 16:10:35
Module start 'content'
Timing: Jan 18 2025 16:10:36
Module end 'content'
Timing: Jan 18 2025 16:10:36
Script end

Main resources:

Total runtime0.7642 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9141152.6250
Module start 'layout' 0.00510.0020 740.539139.4453
Module start 'content' 0.00710.7555 779.9844592.5938
Module end 'content' 0.76260.0015 1,372.578112.1641
Script end 0.7641  1,384.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4322160.0002
Check MTime0.00140.1872160.0001
Mysql Total
Database connection0.00060.083510.0006
Mysqli_queries0.717093.8323700.0102
Looping result0.00070.0981680.0000
Template Total0.734596.120.3673
Template load0.00230.298120.0011
Template processing0.732295.821520.3661
Template load and register function0.00010.018710.0001
states
state_id_array0.00070.087010.0007
state_identifier_array0.00070.086920.0003
Override
Cache load0.00180.2403200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.102140.0002
Fetch class attribute name0.00130.170960.0002
XML
Image XML parsing0.00040.055940.0001
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00070.0942100.0001
String conversion0.00000.000940.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs