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 / [SOLVED] Tabs in AM detail view

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.

[SOLVED] Tabs in AM detail view

More
11 years 11 months ago - 11 years 10 months ago #8347 by brsi
[SOLVED] Tabs in AM detail view was created by brsi
Hi, is there any plan or easy way to group the different positions within Adsmanager detail view in tabs?
Thanks.
Last edit: 11 years 10 months ago by brsi. Reason: solved
The following user(s) said Thank You: adarr
More
11 years 11 months ago - 11 years 11 months ago #8355 by loic
Replied by loic on topic Tabs in AM detail view
Hello,

The last version of adsManager use the Bootstrap template, so you can upload the code to apply the bootstrap tab to it.

Here is a link to the documentation of bootstrap:
getbootstrap.com/2.3.2/javascript.html#tabs

Best regards.
Last edit: 11 years 11 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8368 by brsi
Replied by brsi on topic Tabs in AM detail view
Hi, sounds like very good news indeed!
Are you suggesting tweaking the details/tmpl/view.html.php file?
A basic example might actually help a lot.
Thanks.
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8385 by loic
Replied by loic on topic Tabs in AM detail view
Hello,

The position in the view are displayed like this:
<?php if (!empty($this->fDisplay[3])) {
				$strtitle = @JText::_($this->positions[2]->title);
				if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
				foreach($this->fDisplay[3] as $field) {
					$c = $this->field->showFieldValue($this->content,$field); 
					if (($c !== "")&&($c !== null)) {
						$title = $this->field->showFieldTitle(@$this->content->catid,$field);
                        echo "<span class='".$field->name."'>";
						if ($title != "")
							echo "<b>".htmlspecialchars($title)."</b>: ";
						echo "$c<br/>";
                        echo "</span>";
					}
				}
			}?>

By putting this block in a tab, you will display all the fields of this position in the tab you choose.

To do this, you can override the file 'components/com_adsmanager/views/details/tmpl/default.php' or '.../default_jssor.php' if you use the jssor carousel to display the image.

Also, another little point, when you write JQuery code in the view, don't use the '$' sign but 'jQ' instead.

I hope this will help you :).

Best regards.
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8399 by brsi
Replied by brsi on topic Tabs in AM detail view
Hello,

Yes it does help; thanks a lot.
I have two small issues now: the google map only displays partially once in a tab and I am still strugling to make a tab active by default .
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8467 by loic
Replied by loic on topic Tabs in AM detail view
Hello,

You need to refresh the map when the user click on the tab containing the map.

In the GoogleMap API, they say to run this function in the javascript when you wish to load the map:
google.maps.event.trigger(adsmap, 'resize');

Change the name of the map if you need (In my example, the map is named 'adsmap'.

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