Announcement

Collapse
No announcement yet.

find and replace all code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    find and replace all code

    Hi,
    I am fairly new to actinic and i have had a look around but i can't find out if you can, is there a way to find and replace code on all pages for re-occurances of the code in one fowl swoop.

    Cheers for any help.
    Adam

    #2
    Not really in one fowl swoop, but what are you actually wanting to change?

    Comment


      #3
      i've got slightly different templates for different pages but for instance i want to change the "offer of the month" monthly, so i will need to change the text and picture on every page for it, so i'd like to be able to find all instances of it and change them all.

      Comment


        #4
        This would suit the use of a user defined variable which you can set up in the library. You can then declare the value (text, image name etc) at the store top and these will propagate down to every instance on the store where you have inserted the variable.

        No need for find and replace as changing the one value will change everything in one fell swoop.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          In this case it sounds like you're embedding the code for the "offer of the month" into assorted Layouts.

          Why not use 2 site level Variables instead?

          One for the offer text and another for the offer image. Then you put something like

          <img src="<actinic:variable name="OfferImage" />" /><actinic:variable name="OfferText" />

          into your layouts. Now you periodically change the values of the text and image in Settings / Site Options and the site changes to follow.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Quality thats great cheers.

            Comment

            Working...
            X