Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / How can I get full category pathway on Views->List

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

How can I get full category pathway on Views->List

More
10 years 8 months ago #18492 by thebasix
How can I get full category pathway on Views->List page source code with PHP?

P.S. Give me an answer in reply and dont make me have to write an explanation because this is clear enough.
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18518 by loic
Hello,

The category pathway on the view list are written with this code in the file 'components/com_adsmanager/views/list/tmpl/default.php' :
<?php if ($conf->display_inner_pathway == 1) { ?>
	<div class="row-fluid">
	<?php 
		$pathway ="";
		$nb = count($this->pathlist);
		for ($i = $nb - 1 ; $i >0;$i--)
		{
			$pathway .= '<a href="'.$this->pathlist[$i]->link.'">'.$this->pathlist[$i]->text.'</a>';
			$pathway .= ' <img src="'.getImagePath('arrow.png').'" alt="arrow" /> ';
		}
		if (isset($this->pathlist[0]))
			$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
	echo '<div class="span12">'.$pathway.'</div>';
	?>
	</div>
<?php } ?>

The 'pathlist' variable is loaded in the file components/com_adsmanager/views/list/view.html.php at the line 162 by using the function 'getPathList' of the category model.

This code must display the full pathway when you are on a list page but there is an exception.

- If you display the list from a menu item that have a Rootid, the pathway will begin at the root category

Best regards.
The following user(s) said Thank You: adarr
Time to create page: 0.061 seconds
Powered by Kunena Forum