Page 1 of 1

{RELATED} tag as a <ul> list?

Posted: Tue 18. Oct 2005, 22:48
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

Posted: Sat 5. Nov 2005, 20:23
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"]	= "…";