RM 1.0 Resource manager and adsense

That's a bit too vague.

Try creating your own ad_ templates and including them in the resource_description template where you want them to show.
 
I'm trying but i'm doing something wrong. Can somebody help me with one ad location so i can see the steps.
Let's say i want to put an ad next to the title of a resource when it's opened? See attachement plz.
 

Attachments

  • ad.webp
    ad.webp
    177 KB · Views: 26
Edit the resource_view_header template and add this:
HTML:
<xen:include template="ad_resource_view_header" />

Before this:
HTML:
<h1><xen:if is="{$titleHtml}">{xen:raw $titleHtml}<xen:else />{$resource.title}</xen:if> <xen:if is="!{$resource.isFilelessNoExternal}"><span class="muted">{$resource.version_string}</span></xen:if></h1>
    <xen:if is="{$resource.tag_line} OR {$extraDescriptionHtml}"><p class="tagLine muted">{$resource.tag_line}<xen:if is="{$resource.tag_line} AND {$extraDescriptionHtml}"><br /></xen:if>{xen:raw $extraDescriptionHtml}</p></xen:if>

Then create the ad_resource_view_header template and add your code, floated right:
Code:
<div style="float: right">Ad code here</div>
 
Top Bottom