Question about ReReplacer changing template...

Search
Other Pre-Sale questions
Forum

Question about ReReplacer changing template based on factors

Jamie's Avatar Jamie
For ReReplacer (at least I assume unless Conditional Content could work better):

I know this is not a tech support place where you necessarily will tell me how to do this, I just am trying to figure out the best way to do this and if the plugin is able to. I have no problem buying the pro version if I need to to get support on how exactly to do this but want to make sure it will do what I want first (and if I need the pro version to do it anyway). I haven’t messed with the plugin or coding in forever so I don’t know.

First, I’m going to be updating my template. Right now I have it set to three columns on my main pages (category blog) (basically I have modules on each side of the text) and I hate it. The problem I have is, long story short, the way I originally started writing the articles with intro text and small images, it looked better to me laid out because of the images in a small middle column. I want to completely change the way I do it, but old articles will still to me look weird. I’m assuming it would be fairly easy to say, on all category blog pages older than X date use this old template and on everything newer use this new template, but what about even for article pages, if the intro image is bigger than X pixels wide use this template otherwise use the old template? Or if it doesn’t have an image at all use this one etc.

Second question: until I get a VPS I am over my limit in storage, so I want to delete old photo galleries, but I don’t want them to bring up broken images. I still wanted to be able to use them but only specific ones, so I started putting the photos in a different nested folder with the idea that I could delete all the images in the original folder. I know from the way I set it up before I was able to take old gallery code (I started using a different plug in) and any instance it shows up swap it with new code (ie it was something like change {gallery} to {AG} and {/gallery} to {/AG}) Is there a way to say anytime I use this specific gallery code, when the image directory is here, keep the gallery code the way it is, but if it’s in the old directory show this module instead or this text instead (saying it’s been moved)? I don’t know if you could just do it using for example “{AG} /directory1” or that would screw up the way the actual code works that displays the gallery.

Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
Regarding your template changes, you should do this via template overrides. Ask on the Joomla forum for guidance.

Regarding the replacement of plugin tags, I recommend you use DB Replacer. This way you replace things for good in the content itself, instead of onthe-fly with ReReplacer.
Please post a rating at the Joomla! Extensions Directory
Jamie's Avatar Jamie
Thank you - in regard to only showing “it’s been removed” if the images are from a specific directory, would it still work with ReReplacer though? In this instance (not updating from one gallery code to another which would be permanent) but this change would only be until I find a hosting where I can have enough storage for more images then I would want them back. Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, should be doable with ReReplacer.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in