Advertisement:

Author Topic: page creation  (Read 768 times)

galtech

  • Newbie
  • *
  • Posts: 18
page creation
« on: September 15, 2016, 11:30:31 am »
hiii

i'm new to this os class. i created my theme by editing the existing bender theme. i found so many pages like item.php,main.php,search.php etc... and these pages are called by [base_url]index.php?page=search&sCategory=[category_id] or something like this.

if i create a page like custome_page.php, can i call the page [base_url]index.php?page=custome_page ?
Or how can i create a template page for my custom use and how can i link the page using <a href="">

can anyone help me

thanks in advance

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: page creation
« Reply #1 on: September 15, 2016, 12:25:36 pm »

galtech

  • Newbie
  • *
  • Posts: 18
Re: page creation
« Reply #2 on: September 15, 2016, 01:03:03 pm »
hi teseo

thanks for the fast reply
i checked with https://doc.osclass.org/Pages and created page-my_custom_page.php . But how to access this page as template?
If i delete the page my_custom_page from admin side what will happen to page-my_custom_page.php?
Like wordpress is there is any option to create a page as template page in theme folder?

thanks

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: page creation
« Reply #3 on: September 15, 2016, 01:20:05 pm »
Don't quite understand. ???

You have your new script page-my_custom_page.php, modify it as any other script.

Regards

marcelovl

  • Newbie
  • *
  • Posts: 1
Re: page creation
« Reply #4 on: October 04, 2016, 10:32:36 pm »
My site https://www.vidaloka.net/racionais has the same problem.