Post image left or right in Joomla

Scorpion Computers & Software
65 Posts
Scorpion Computers & Software posted this 01 November 2016

It may be the same issue as this http://answers.themler.com/questions/16714/post-image-float-right-or-left-chosen-by-joomla-article-parameter

But i think we are talking about different content types.
When i use a single article view in Joomla i can choose if the image should be placed left, right or none.
This can be found by looking at the $params->get('float_fulltext')
Here is a piece of code from the original component

<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
<?php if ($images->image_fulltext_caption):
    echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"';
endif; ?>

You can add this value to a class that starts with "pull-"
Example:

<div class="pull-<?php echo htmlspecialchars($imgfloat); ?>

This functionality is used a lot in Joomla environments and i know there are more of your customers who would like to see this feature. So can you please look at it?

It may be the same issue as this http://answers.themler.com/questions/16714/post-image-float-right-or-left-chosen-by-joomla-article-parameter But i think we are talking about different content types. When i use a single article view in Joomla i can choose if the image should be placed left, right or none. This can be found by looking at the $params->get('float_fulltext') Here is a piece of code from the original component <?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_fulltext_caption): echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; endif; ?> You can add this value to a class that starts with "pull-" Example: <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> This functionality is used a lot in Joomla environments and i know there are more of your customers who would like to see this feature. So can you please look at it?
Vote to pay developers attention to this features or issue.
11 Comments
Order By: Standard | Newest
Scorpion Computers & Software
65 Posts
Scorpion Computers & Software posted this 04 November 2016

I have created a solution myself and i want to share this with you so you can implement it in your next version

In the file html/com_content/article/deafult_template.php
After every line that has the code

<?php ob_start(); ?>

Place the following piece of codeafter that (6 times in my current template)

<?php
// Added by Scorpion Computers & Software
// Adds class for pulling the article image left or right
$myparams  = $this->item->params;
$images  = json_decode($this->item->images);
$imgfloat = (empty($images->float_fulltext)) ? $myparams->get('float_fulltext') : $images->float_fulltext;
$imgfloafclass = 'pull-' . $imgfloat;
$params['image-float'] = $imgfloafclass;
// End of added by Scorpion Computers & Software
?>

The go to the files include/article_2.php to include/article_7.php and look for a line that has the class="bd-postimage in it. In the class parameter add the following code

 <?php echo $data['image-float'];?>

As an example the line should look something like this

<div class=" bd-postimage-4 bd-no-margins <?php echo $data['image-float'];?>">

So please add this to your default templates (and also to the editor part ofcourse)
I know your can clean up the code that is above, but this is just to show you it can be done pretty simple.

I have created a solution myself and i want to share this with you so you can implement it in your next version In the file html/com_content/article/deafult_template.php After every line that has the code <?php ob_start(); ?> Place the following piece of codeafter that (6 times in my current template) <?php // Added by Scorpion Computers & Software // Adds class for pulling the article image left or right $myparams = $this->item->params; $images = json_decode($this->item->images); $imgfloat = (empty($images->float_fulltext)) ? $myparams->get('float_fulltext') : $images->float_fulltext; $imgfloafclass = 'pull-' . $imgfloat; $params['image-float'] = $imgfloafclass; // End of added by Scorpion Computers & Software ?> The go to the files include/article_2.php to include/article_7.php and look for a line that has the **class="bd-postimage** in it. In the class parameter add the following code <?php echo $data['image-float'];?> As an example the line should look something like this <div class=" bd-postimage-4 bd-no-margins <?php echo $data['image-float'];?>"> So please add this to your default templates (and also to the editor part ofcourse) I know your can clean up the code that is above, but this is just to show you it can be done pretty simple.
Bayern
90 Posts
Bayern posted this 06 November 2016

For me this is superfluous

i use the JCE Editor and i can place an image where ever i want

For me this is superfluous i use the JCE Editor and i can place an image where ever i want
Support Team
Support Team posted this 09 November 2016

Hello Edwin,
thank you for sharing solution. I'm passing it to developers and we'll keep it in mind.

regards,
Aileen

Hello Edwin, thank you for sharing solution. I'm passing it to developers and we'll keep it in mind. regards, Aileen
Pinobird
6 Posts
Pinobird posted this 09 November 2016

Thanks Edwin,

This is working fine until Themler decides to update again.

So @Aileen (support team) can you please implement the code that Edwin has created for you and be greatfull so we (the buyers of your product) will be greatfull too.

Thanks Edwin, This is working fine until Themler decides to update again. So @Aileen (support team) can you please implement the code that Edwin has created for you and be greatfull so we (the buyers of your product) will be greatfull too.
Support Team
Support Team posted this 11 November 2016

Hello Hans,
you're right. The changes are overwritten when then is saved/exported. Right now please just keep it in mind.

Regards,
Aileen

Hello Hans, you're right. The changes are overwritten when then is saved/exported. Right now please just keep it in mind. Regards, Aileen
info.annahanna
5 Posts
info.annahanna posted this 06 December 2016

Aileen,

I see that Scorpion Computers & Software has created a solution for you, and i have seen that it is working. The solution was posted on november 4th and e few weeks after that there was an update of Themler. This fix wasn't in there. Will it be in the next update, because i also want to use this functionality.

Aileen, I see that Scorpion Computers & Software has created a solution for you, and i have seen that it is working. The solution was posted on november 4th and e few weeks after that there was an update of Themler. This fix wasn't in there. Will it be in the next update, because i also want to use this functionality.
Support Team
Support Team posted this 07 December 2016

Hello Hannh,
it was not in our plans to include this solution in Themler update. So please edit the files manually after theme export.

regards,
Aileen

Hello Hannh, it was not in our plans to include this solution in Themler update. So please edit the files manually after theme export. regards, Aileen
Scorpion Computers & Software
65 Posts
Scorpion Computers & Software posted this 07 December 2016

Aileen,

I have counted at least 5 of your paying customers who have given you a sign that they want this functionality in your software. I have created the solution for you. Myself and Some otters have testen this solution and iT Seems to work oké.

Please explain to me (and the others) why you won't even considder implementing this functionality?

Aileen, I have counted at least 5 of your paying customers who have given you a sign that they want this functionality in your software. I have created the solution for you. Myself and Some otters have testen this solution and iT Seems to work oké. Please explain to me (and the others) why you won't even considder implementing this functionality?

Last edited 07 December 2016 by Scorpion Computers & Software

Support Team
Support Team posted this 09 December 2016

Hello Edwin,
we appreciate your comments.
To say in brief the Themler is now in quite stable phase and regarding Themler we have put new features on hold for some time. It doesn't mean that we do no take into account your votes or wishes. We'll definitely review and consider them while planning and implementing new Themler features.

Regards,
Aileen

Hello Edwin, we appreciate your comments. To say in brief the Themler is now in quite stable phase and regarding Themler we have put new features on hold for some time. It doesn't mean that we do no take into account your votes or wishes. We'll definitely review and consider them while planning and implementing new Themler features. Regards, Aileen
Scorpion Computers & Software
65 Posts
Scorpion Computers & Software posted this 4 weeks ago

Oke Support Team,

We are now half a year past the last message about this issue. I have recently installed the latest beta, but still there is now support for this feature. I would like to know in which version are you going to implement this. As i said there several paying customers waiting for this solution and i even gave you the solution in code. You know i'am not only trying to help myself but also other users and you to create a better user experience.

I must understand that it's not always wanted that make manual changes after every update of Themler. Changes get lost in the process.

Oke Support Team, We are now half a year past the last message about this issue. I have recently installed the latest beta, but still there is now support for this feature. I would like to know in which version are you going to implement this. As i said there several paying customers waiting for this solution and i even gave you the solution in code. You know i'am not only trying to help myself but also other users and you to create a better user experience. I must understand that it's not always wanted that make manual changes after every update of Themler. Changes get lost in the process.
Support Team
Support Team posted this 3 weeks ago

Hi,

Yes, unfortunately this feature was not implemented yet and I cannot say when it will be supported.
Currently you can set Post image floating in Themler for the template only.

Thank you,
Olivia

Hi, Yes, unfortunately this feature was not implemented yet and I cannot say when it will be supported. Currently you can set Post image floating in Themler for the template only. Thank you, Olivia
You must log in or register to leave comments