![]() |
Generating multiple HTML pages from a template??
If I have an HTML template called 00.html and the code on the template is <img src="00.jpg">
Is there an easy way to generate multiple pages named 01.html with the code <img src="01.jpg"> 02.html with the code <img src="02.jpg"> ??? |
Yes, any scripting language can create these pages dynamically from the URL ?query string
The pages could be written with a script if you need static pages for some reason. |
know any software / wp plugin that can do this?
|
google "php echo string" and add mod rewrite to make it 02.html rather then page.php?q=2
|
You need php.
|
sounds complicated
|
Quote:
-> 10 day free trial at SafariBooksOnline.com You can ask in the PHP section of CodingForums.com, and people will tell you exactly, what you need to do. A lot of other places on the Internet too, the more related to PHP, the better. |
Also depends if you want those pages dynamically created on the fly, so there actually wont be any 01.html, 02.html on the server, just a lets say /page.php?q=2
Or do you need those actual files |
thanks! I'll check it out!
|
Quote:
Edit: Open the original template in Notepad++, and then open another one, next to it, and do search and replace there. Do this, save, do the next one, save, and so on. |
just a few php lines, contact me if you need some help ;)
|
Quote:
Basically how it works now is this: -HTML files are created locally on a computer with this name: 01(wp post ID)01.html and with this code <img src="01.jpg"> on them. - The files get uploaded via FTP - HTML code gets inserted to wp post <a href="0101.html><img src="01_small.jpg"></a> <a href="0102.html><img src="02_small.jpg"></a> Seems like there should be a faster way :upsidedow |
Quote:
|
not even that many, just 12 for each template
I set up like 20 posts in a day though with various templates |
Quote:
|
Quote:
|
icq me ill help.
|
If it is only 12 files (HTML static pages) do it with a text editor.
Would already be done :2 cents: === edit: time times 20? change 12 templates pages adding 20 posts daily? === you need 12 static html pages [10](prefix)+(wp post ID)01.html 01 to infinity? === Get a programmer. |
Quote:
|
Aren't there any plugins for that?
Btw the default template can show full photos on html, so there you can add an ad, but I assume you want to add content specific ads (meaning to the same sponsor).. |
UUgallery would have been good for this.
Aside from that, you are using WordPress, look through the available plug-ins. There will be several to choose from. Something like this: https://wordpress.org/plugins/easy-image-gallery/ You can also use: Arles Image Web Page Creator |
Notepad ++ for the non-coder (I used to be that guy and life sucked, so I learned to code) a plan of attack is to have your pages in one folder. Do a find and replace on the folder. a becomes b, tomorrow b becomes c, etc.
|
What is the website url, out of curiosity?
|
All times are GMT -7. The time now is 05:50 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc