Jump to content

[SOLVED] Creating Pages based on a template.


imperium2335

Recommended Posts

Hi,

 

Is it possible and reasonably easy to make a script that will produce loads of pages based on a template page, and for each page add in 2 images? Those pages would also have title and keyword tags randomly generated from a pool of words to (similar to what i was making before).

 

I've learnt quite a lot so far so I want to take on this.

 

Thanks in advance.

Hi there,

 

ITs a pretty simply idea.

 

In your template have regoins specified, eg

 

<DOCTYPE blablabla... >
<head>
<meta description="keywords" content="[keywords here]" >
<title>[Title here]</title>
...
</head>

<body>
<div class="header">[Title Here]</div>
<div class="textleft">[user text here]</div>
<div class="image1right"><img src="[image1source]"></div>
<div class="image2right"><img src="[image2source]"></div>
<div class="footer">© [title here] 2009 </div>
</div>

</html>

 

you would then read the file

use regex to replace the values

then save the file Too a different name!

Yea I know how to make the template, but like I want it to inject things into the template from ss includes that randomly generate the titles etc from pools of words, then to create the page in a seperate directory, then back to the template, mix it up again, pump out another page if you get what i mean.

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.