Page 1 of 1

how can i call a file from page_id

Posted: Fri Oct 02, 2009 11:33 pm
by manojsemwal1
<div id="container">
<div id="menu">
<ul>
<li class="page_item page-item-4"><a href="http://www.transitionderby.co.uk/?page_id=4" title="Calendar">Calendar</a>li></ul>
</div>

Somebody help me to try how the above href link call the Calender html file from page_id.
:banghead: :banghead:
thanks
Manoj Semwal

Re: how can i call a file from page_id

Posted: Sat Oct 03, 2009 4:40 am
by jackpf
what?

Re: how can i call a file from page_id

Posted: Sun Oct 04, 2009 11:42 pm
by manojsemwal1
<a href="http://www.transitionderby.co.uk/?page_id=4" title="Calendar">Calendar</a>
here after?page_id=4 is calling a file calender file.
how can i call a file giving only page_id.
while when we use href link we define like <a href="http://www.transitionderby.co.uk/calender.html" title="Calendar">Calendar</a>

Re: how can i call a file from page_id

Posted: Mon Oct 05, 2009 5:37 am
by jackpf
You mean you want to use mod_rewrite?

Re: how can i call a file from page_id

Posted: Tue Oct 06, 2009 12:22 am
by manojsemwal1
yes u got it
pl tell me how to do that..........

Re: how can i call a file from page_id

Posted: Tue Oct 06, 2009 5:35 am
by jackpf
Like this?

Code: Select all

^calendar$ index.php?page_id=4

Re: how can i call a file from page_id

Posted: Sun Oct 11, 2009 11:55 pm
by manojsemwal1
Thanks for Your Reply

can u explain breifly because iam new bibe in php. to show ^calendar$ index.php?page_id=4

where we have to give the page_id in calender.html page.......

Re: how can i call a file from page_id

Posted: Mon Oct 12, 2009 5:39 am
by jackpf
Put that in a htaccess file. Google mod_rewrite for more information and stuff.

Btw, I didn't read your first post properly, if you want calendar.html, then try this:

Code: Select all

^calendar\.html$ index.php?page_id=4

Re: how can i call a file from page_id

Posted: Mon Oct 12, 2009 11:36 pm
by manojsemwal1
Once again thanks ........

pl visit the site http://www.transitionderby.co.uk for your reference...........

Acually here after the domain name /?page_id=2 is showing insteadof .html file.
pl check the left pane menu. here all hyperlink having a id.
I want to know how to define a hyperlink in id.
i wnat to know how to do this....

Manoj