Article title and footer removal?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Article title and footer removal?

Post by rj »

Is there a process to remove all information from an article so to put in a bare advertisement?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Article title and footer removal?

Post by garvinhicking »

Hi!

Yes: Edit entries.tpl. :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

hmmmm....

Would not editing entries involve ALL articles when I just want to pick one here and there to eliminate the title and footer?

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah. In that case you can use the 'Custom Entryproperties' plugin. Add a custom field like "IsAdvertisement". For entries where you only want to show the content, enter "1" in that advertisement field in the extended entryproperties section.

Then you edit your entries.tpl template and use Smarty-IF checks to surround the blocks you only want to show when no ad is emitted:

Code: Select all

{if $entry.properties.ep_IsAdvertisement != 1}
...author information, footer, etc.
{/if}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I understand that! :)

Are you putting those ads behind each one of these ad questions on purpose? :)


thanx

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
Are you putting those ads behind each one of these ad questions on purpose? :)
Sorry, what do you mean?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

My question was about cramming advertisements between articles in the blog and when I came by to read your response it had advertisements in the blog on both sides of your message... So I thought maybe you were showing me an example is all. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, I can't see any advertisements here?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I dont see them now either.
Perhaps I used the wrong term as I think they were Serendipity kind of ads.
They looked like ads so I didnt pay attention! :)
Post Reply