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 / [RESOLVED] how to add html code

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.

[RESOLVED] how to add html code

More
11 years 8 months ago - 11 years 8 months ago #9779 by gfoxtrot
[RESOLVED] how to add html code was created by gfoxtrot
Hi in the details view i want to add some html code to change the way it looks. Specifically i want to add <dt>...</dt> and <dd>...</dd>

is that possible somehow?


Thx very much,
George
Last edit: 11 years 8 months ago by gfoxtrot.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9794 by loic
Replied by loic on topic how to add html code
Hello,

You can do an override of the details view in your template.
Then you will be able to add the code you want.

Here is a link to help you :
www.joomprod.com/documentation/doc-view-override.html

Best regards.
The following user(s) said Thank You: gfoxtrot, adarr
More
11 years 8 months ago #9807 by gfoxtrot
Replied by gfoxtrot on topic how to add html code
Ok! i want some enlightenment.

i have this :

<div class="span12">
<?php if (!empty($this->fDisplay[5])) {
$strtitle = @JText::_($this->positions[4]->title);
if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>";
if ($this->showContact) {
if (isset($this->fDisplay[5]))
{
foreach($this->fDisplay[5] 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>";
}
}
}
}


and i want to add <dl class="dl-horizontal "> and in each field from the left side(field name) <dt>...</dt>
and from the right side(field title) <dd>...</dd>

field title: field name

if you have any spare tim(i understand that this is not something to do with adsmanager directly) please help.

Thx very much,
George
The following user(s) said Thank You: adarr
More
11 years 8 months ago #9822 by loic
Replied by loic on topic how to add html code
Hello,

The field title is written on this line :
echo "<b>".htmlspecialchars($title)."</b>: ";

and the value, on this line:
echo "$c<br/>";

So you can change this block:
echo "<span class='".$field->name."'>";
if ($title != "")
echo "<b>".htmlspecialchars($title)."</b>: ";
echo "$c<br/>";
echo "</span>";

like that :
echo "<dl class='dl-horizontal ".$field->name."'>";
if ($title != "")
echo "<dt>".htmlspecialchars($title)."</dt>: ";
echo "<dd>$c</dd>";
echo "</dl>";

Best regards.
The following user(s) said Thank You: gfoxtrot, adarr
More
11 years 8 months ago #9986 by gfoxtrot
Replied by gfoxtrot on topic how to add html code
Solved!!!! thx very much!!!


George
The following user(s) said Thank You: adarr
More
11 years 8 months ago #10013 by loic
Replied by loic on topic how to add html code
Great news.

I update the topic subject to resolved.

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