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 / Public Forum / Main Forum / [RESOLVED] Front view override

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.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Front view override

More
11 years 7 months ago - 11 years 7 months ago #10598 by catalinads
[RESOLVED] Front view override was created by catalinads



i want to edit front template
<div class="span<?php echo $classtype ?>">
 
					<div class="span12">
						<h2 class="adsmanager_main_cat"><a href="<?php echo $link; ?>"  ><?php echo '<img class="imgcat" src="'.TTools::getCatImageUrl($row->id).'" alt="'.htmlspecialchars($row->name).'" />';?> <?php echo htmlspecialchars($row->name); ?></a></h2> 
						<ul class="adsmanager_sub_cat">
 
			<?php	
 
			$divopen = true;
			//$firstsubcat = true;
		} else {
 
			//if ($firstsubcat == false)
			echo '<li class="test"><a href="'.$link.'">'.htmlspecialchars($row->name).'<span>'.$numAds.'</span></a></li>';

and at the last line where ir rendering subcategories i want to create a div instead li.
after that with css to make that div look like that blue thinhs from images.
dont know if it is a good idea..so i need an opinion.

now. i want to get there an image of each subcategory and i dont know how to take it.

this helps me? how? :
if ($this->list_img != "") {
		echo '<img  class="imgheading" src="'.$this->list_img.'" alt="'.$this->list_img.'" />';
	}
	echo JText::_($this->list_name);
Attachments:
Last edit: 11 years 7 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10613 by tompap
Replied by tompap on topic Front view override
TTools::getCatImageUrl($row->id)

$row->id the id of the category
This function will draw the image
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10631 by catalinads
Replied by catalinads on topic Front view override
i have see that line .. at the categories...

but.. i dont know where to put it for subcategories...
so no success for me
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10654 by loic
Replied by loic on topic Front view override
Hello,

You just need to add the line Tompap gave you where you wish to display the image of the subscat :).

Best regards.
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10672 by catalinads
Replied by catalinads on topic Front view override
Done it! thanks!
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10688 by loic
Replied by loic on topic Front view override
Great :).

I update the topic subject to resolved.

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