English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Home Search / Replace utility
Details for Search / Replace utility
PropertyValue
NameSearch / Replace utility
Description

This a Joomla 1.5, 1.6, 1.7, 2.5, 3.0 and 3.1 native system plugin allow to search and replace any content present in a page.

This can be used for example to replace some keywords that could be placed in "shared articles" and that will be replaced by their specific values in a given website using this Search/Replace plugin.

You could for example use keywords like:

[COMPANY] = This is my company

[DEALER_NAME] = This is the dealer name

Version 1.1

With 1.1.0 version, it is now possible to also enter regular expression.
A regular expression is identified by a tilt as first character

~#\[COMPANY\]#i = This is my company

Version 1.2

The list of Search/Replace can also be provided from external files.
You can provide 2 external files with the Search/Replace patterns.
For example you could use :

  • file #1 = {root}/tmp/searchreplace.php
  • file #2 = {root}/tmp/searchreplace{site_id}.php

As you can see, some keywords can be used in the file names.

  • {root} = the document root directory if the website
  • {site_id} = the Multisites slave site ID.

In this sample, we have use a PHP file extension to allow protect the content of this file.
Here it is a sample of file content

<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
/*
; Put below the Search/Replace expressions
;------------------------------------------

Search1=replace value1
Search2=replace value2

*/

See also power point and PDF

Version 1.3

Add Joomla 1.6 compatibility

Version 1.4

Add processing of keyword {host-N}

Version 1.5

Add PCRED customization and error handling

Version 1.6

Add PHP 5.4 compatibility

Version 1.7

Add Joomla 3.0 and 3.1 compatibility

Version 1.8

Add the possibility to use the keyword {host} and {host-x} in the Search/Replace file name

Version 1.9

Add the possibility to select if the Search/Replace is applied on HEAD or BODY section and not only on the full HTML page content.

When both HEAD and BODY is selected, the Search/Replace is applied on the full HTML content

Version 1.10

Under Joomla 2.5 or higher, avoid that the text area is filtered on html tag. Now accept to enter an html tag into the textarea instead putting the value into a file #1 or file #2

FilenameplgSR2Win_V1.10.0.zip
Filesize16.87 kB
Filetypezip (Mime Type: application/zip)
Creatoredwin2win
Created On: 03/08/2009 14:18
ViewersEverybody
Maintained byedwin2win
Hits11459 Hits
Last updated on 10/21/2013 12:56
Homepage
CRC Checksum
MD5 Checksum
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla