J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Positioning of plugin, just after title (1 viewing) 
Go to bottom
TOPIC: Positioning of plugin, just after title
#3444
Junk
Fresh Boarder
Posts: 9
User Offline
Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 0  
Hi,
I'm trying to set position of this plugin just after article title.
Problem occurs if I have full article image set, then plugin will be shown just above article text but not under article title.
I would like to have this plugin more to the top of the article.

I found out that <?php echo $this->item->text; ?> is including this plugin and I'm not sure how to divide it.

Is there any trick how to solve this as I'm overriding my article template anyway.

Please check attached image
 
Logged Logged  
  The administrator has disabled public write access.
#3445
John Dagelmore
Admin
Posts: 3522
User Offline
Re:Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 74  
Hi,

this is due to the way that the Joomla content component notify and embed code from various content plugins. You can try to manage an override of the content component and change location of elements, or use CSS to change the order of title/text/icons

Cheers,
John
 
Logged Logged  
  The administrator has disabled public write access.
#3446
Junk
Fresh Boarder
Posts: 9
User Offline
Re:Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 0  
This can be solved by changing line
Code:

<?php echo $this->item->text; ?>
to lines:
Code:

<?php echo $this->item->introtext; ?> <?php echo $this->item->fulltext; ?>
but how to call only your plugin somewhere in source code? also most of the other components are called by
Code:

<?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->event->afterDisplayContent; ?>
 
Logged Logged  
 
Last Edit: 2015/10/17 14:24 By .
  The administrator has disabled public write access.
#3447
John Dagelmore
Admin
Posts: 3522
User Offline
Re:Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 74  
You can use the plugin syntax {fastsocialshare} to show social buttons inside certain articles.

The default call event for the plugin is onContentPrepare because of the need to replace the placeholder. if you find an appropriate solution for your specific case you can change the plugin code to use onBeforeDisplayContent or onAfterDisplayContent
 
Logged Logged  
  The administrator has disabled public write access.
#3448
Junk
Fresh Boarder
Posts: 9
User Offline
Re:Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 0  
I want to override this to have it on all articles, and because of that I dont want to use syntax {fastsocialshare}.

Can you suggest me what to change in your code to get this placed after title?

I tried to replace onContentPrepare with onBeforeDisplayContent but then your plugin is not shown?
 
Logged Logged  
  The administrator has disabled public write access.
#3451
Junk
Fresh Boarder
Posts: 9
User Offline
Re:Positioning of plugin, just after title 4 Years, 2 Months ago Karma: 0  
I'm having some problems downloading this file to get source from it.
When I open it only one line: Restricted access
 
Logged Logged  
  The administrator has disabled public write access.
Go to top