Jump to content


Photo
- - - - -

hook before or after the title of a post


  • Please log in to reply
5 replies to this topic

#1 patadura

patadura

    Newbie

  • Members
  • 5 posts
  • LocationTandil, Argentina
  • Framework Version:2.3
  • Country: Country Flag

Posted 29 March 2013 - 12:38 AM

It would be interesting to put a hook before and after the title of a post. That way it could be used in places such as newspapers or have better management of the elements of each post.
(sorry for my bad english)

 

Something like this http://www.screencas.../t/osqoxICe4W0J

 

 



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 29 March 2013 - 02:42 AM

Hi Patadura,

 

There are hooks available in the postloop before the excerpts. Like 'pagelines_loop_before_excerpt'.

 

If you know the html/php code you'd like to enter into the hook you can use the hooker plugin to place it in there (just make sure you follow the instrcutions to enable php use in the hooker plugin).

 

Also hooker is this months free plus product :-)

 

A full list of hooks can be found here - http://api.pagelines.com/hooks



#3 patadura

patadura

    Newbie

  • Members
  • 5 posts
  • LocationTandil, Argentina
  • Framework Version:2.3
  • Country: Country Flag

Posted 29 March 2013 - 03:07 AM

James, yes, but not what I need, because they do not places the category name over the title. I need a hook, that allows me to put elements before or after the title.

 

actualy its:

 

title

metabar

thumbnail

excerpt

 

i need:

[hook] <----------- I need to place the name of the category of post (or news in my case)
TITLE
metabar
[hook] <----------- I need
thumbnail
[hook] <----------- what you say
excerpt

Hook plugin its free? ufff .. I bought a few months ago :growl: : (



#4 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 29 March 2013 - 03:48 AM

Hi, I've just checked with the actionmap plugin for you and there is a hook above the title called 'the post' you can hook into.

 

http://screencast.com/t/c8UwBAac2qA



#5 patadura

patadura

    Newbie

  • Members
  • 5 posts
  • LocationTandil, Argentina
  • Framework Version:2.3
  • Country: Country Flag

Posted 29 March 2013 - 02:03 PM

Thanks James for your effort, but I've tried and does not work because the nesting is incorrect, I put a screenshot so you can watch.

 

http://www.screencas.../t/S0AaoZygbQW3

You see, as I understand, there is an error in the programming that produces what I say.

Insist that to have more freedom when layout is put a title HOOK before but inside every post.

kind regard



#6 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 29 March 2013 - 09:25 PM

Hi Paatadura

 

Thanks for getting back to us, I will pass this information on to the developer team to review :-)