Post image left or right in Joomla

Scorpion Computers & Software
70 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.
21 Comments
Order By: Standard | Newest
Scorpion Computers & Software
70 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
96 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
70 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
70 Posts
Scorpion Computers & Software posted this 04 June 2017

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 09 June 2017

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
j.janik
3 Posts
j.janik posted this 28 June 2017

Normally, in the backend of Joomla I can choose which page to display Intro Image, left or right. Whatever I try to do in Themler this function does not work!
It's frustrating when you create a template a few days, and after installation it turns out that it does not work one of the most important parts of template.
For clarity, it's not a text editor.
http://joomla.vinagecko.net/d/e/accordion_content/assets/images/joomla3-image-choose-intro.png

Normally, in the backend of Joomla I can choose which page to display Intro Image, left or right. Whatever I try to do in Themler this function does not work! It's frustrating when you create a template a few days, and after installation it turns out that it does not work one of the most important parts of template. For clarity, it's not a text editor. http://joomla.vinagecko.net/d/e/accordion_content/assets/images/joomla3-image-choose-intro.png
Scorpion Computers & Software
70 Posts
Scorpion Computers & Software posted this 28 June 2017

@Themler team.

As you can see there are more people using this basic Joomla! functionality.
I already gave you the solution, so please just implement it.
I am a developer, so don't give me all these excuses. I know what i am talking about and i know the consequences of a change.

@Themler team. As you can see there are more people using this basic Joomla! functionality. I already gave you the solution, so please just implement it. I am a developer, so don't give me all these excuses. I know what i am talking about and i know the consequences of a change.
Support Team
Support Team posted this 30 June 2017

Hi,

This issue will be fixed in one of the future Themler updates.

Thank you,
Olivia

Hi, This issue will be fixed in one of the future Themler updates. Thank you, Olivia
Scorpion Computers & Software
70 Posts
Scorpion Computers & Software posted this 03 July 2017

I'm sorry Olivia, that is not good enough. Give me a more concrete answer like it will be fixed in the next Themler Update.

I'm sorry Olivia, that is not good enough. Give me a more concrete answer like it will be fixed in the **next** Themler Update.
Support Team
Support Team posted this 04 July 2017

Hi,

Most probably it will be fixed in the next Themler update, but I cannot promise. If not, the fix will be available in the update after the upcoming hot-fix update.

Thank you,
Olivia

Hi, Most probably it will be fixed in the next Themler update, but I cannot promise. If not, the fix will be available in the update after the upcoming hot-fix update. Thank you, Olivia
Scorpion Computers & Software
70 Posts
Scorpion Computers & Software posted this 05 July 2017

Olivia,

Thank you very much for this most satisfying answer. I'm sorry if i seem a little pushy, but as you might know i use Themler a lot and have advised it to several of my clients and colleagues. If i have an issue i like it to be solved. Most of the time i even hand you a solution. It helps me when Themler is updated that it is implemented and it always helps others.

So my apologies if i come on a little strong. Look at it from this side. For your company, team and product it's good that there are critical customers.

Olivia, Thank you very much for this most satisfying answer. I'm sorry if i seem a little pushy, but as you might know i use Themler a lot and have advised it to several of my clients and colleagues. If i have an issue i like it to be solved. Most of the time i even hand you a solution. It helps me when Themler is updated that it is implemented and it always helps others. So my apologies if i come on a little strong. Look at it from this side. For your company, team and product it's good that there are critical customers.
Support Team
Support Team posted this 05 July 2017

Hi,

Thanks for your feedback. We really appreciate your interest in Themler.

Sincerely,
Hella

Hi, Thanks for your feedback. We really appreciate your interest in Themler. Sincerely, Hella
DaveOzric
579 Posts
DaveOzric posted this 3 weeks ago

So to be clear this update will allow the Joomla settings to dictate the float of the images and can be set per article or globally?

If so is the update still planned for next release?

Thank you

So to be clear this update will allow the Joomla settings to dictate the float of the images and can be set per article or globally? If so is the update still planned for next release? Thank you
Support Team
Support Team posted this 3 weeks ago

Hi,

This feature was already included into the latest beta update. Currently we disabled beta updates because of the technical works on our servers. But we plan to release public update this week.
Yes, this feature allows to control the floating of the intro and full article images from the joomla admin panel.

Thank you,
Olivia

Hi, This feature was already included into the latest beta update. Currently we disabled beta updates because of the technical works on our servers. But we plan to release public update this week. Yes, this feature allows to control the floating of the intro and full article images from the joomla admin panel. Thank you, Olivia
You must log in or register to leave comments