{RELATED} tag as a <ul> list?

Use GitHub to post feature requests for phpwcms.
Locked
tamara
Posts: 11
Joined: Wed 21. Sep 2005, 18:44

{RELATED} tag as a <ul> list?

Post by tamara »

Has anyone converted the {RELATED} tag to display as a list instead of as a table? Or is there a RT other than {RELATED} that does this? I am looking for a way to display a horizontal list of the ARTICLES under a CATEGORY. I need the list so that I can apply CSS styles to the <UL><LI> items.

Example: Article 1 | Article 2 | Article 3 | Article 4

I also want to add this to my template and the requirement for *keyword* in the {RELATED} tag prevents using it on a site-wide template. The Content Part Article Menu has the functionality of automatically listing all Articles under the current Category but the layout is too bulky.

I was going to use
{BREADCRUMBS}<BR />
{RELATED:5:ABOUT}

to create
Home > About Us
Welcome | History | Officers | Contact
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

see "conf.template_default.inc.php":

Code: Select all

$template_default["related"]["before"]			= '<div class="related">';
$template_default["related"]["after"]			= '</div>';
$template_default["related"]["link_before"]		= '<p>';
$template_default["related"]["link_after"]		= "</p>";
$template_default["related"]["link_symbol"]		= "";
$template_default["related"]["link_target"]		= "";
$template_default["related"]["link_length"]		= 0; //if 0 no limit
$template_default["related"]["cut_title_add"]	= "…";
there you can set everything as you like:

Code: Select all

$template_default["related"]["before"]			= '<ul>';
$template_default["related"]["after"]			= '</ul>';
$template_default["related"]["link_before"]		= '<li>';
$template_default["related"]["link_after"]		= "</li>";
$template_default["related"]["link_symbol"]		= "";
$template_default["related"]["link_target"]		= "";
$template_default["related"]["link_length"]		= 0; //if 0 no limit
$template_default["related"]["cut_title_add"]	= "…";
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked