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] Multiplier les positions

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] Multiplier les positions

  • mkfontaine
  • mkfontaine's Avatar Topic Author
  • Offline
  • Invoicing
  • Invoicing
More
11 years 8 months ago - 11 years 8 months ago #9894 by mkfontaine
[RESOLVED] Multiplier les positions was created by mkfontaine
Bonjour,
je désire multiplier les positions. autres que ADSMANAGER_POSITION_TOP, ADSMANAGER_POSITION_DESCRIPTION2, ...
malgré l'ajout ds la BDD d'une position supplémentaires et la modification de position.php, la position ajoutée n’apparaît pas ds la mise en page "détails".
Merci.
Last edit: 11 years 8 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9917 by loic
Replied by loic on topic Multiplier les positions
Bonjour,

Dans la page détails, les positions sont assignés "à la main".

Pour ajouter vos positions, vous devez en tout premier lieu faire un override de la page details, voici un lien pour vous aider :
www.joomprod.com/documentation/doc-view-override.html

Ensuite, ajouter ce code la ou vous souhaitez voir apparaître votre position:
<?php
$strtitle = @JText::_($this->positions[{id_position}]->title);
				if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
				foreach($this->fDisplay[{id_position} +1] 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>";
					}
?>
				}

Pensez bien à remplacer {id_position} par l'id de votre position.

Ce fonctionnement sera facilité dans une prochaine version d'adsmanager.

Cordialement.
The following user(s) said Thank You: mkfontaine, adarr
  • mkfontaine
  • mkfontaine's Avatar Topic Author
  • Offline
  • Invoicing
  • Invoicing
More
11 years 8 months ago #9931 by mkfontaine
Replied by mkfontaine on topic Multiplier les positions
:) Merci, mon problème est réglé.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9953 by loic
Replied by loic on topic Multiplier les positions
Excellente nouvelle :).

Je passe le sujet en résolu.

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