Jump to content

Recommended Posts

Ok I have a blog installed on my server in a folder called "Blog"

 

and part of the template that I use there is a part that lists out the last 10 things I blogged (titles)

 

to list them on the template (that is inside the blog folder) I use this chunk of code:

 

<RecentEntry>

-<%RecentEntryTitle%>

 

</RecentEntry>

 

 

 

Now, I would like to list those same titles automatically on my index.html page, which is located outside of the blog folder.

 

 

Link to comment
https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536245
Share on other sites

Your blog must have its own template system which parses the code you have posted with the generated top 10 list.

 

In order for it to show up in your index.html file you'll first have to rename it to index.php then include the relevant code from your blog for parsing the code to get your top 10 list.

Link to comment
https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536252
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.