Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION What's the best approach for page content display?
#1
Hi, just started delving into the theme creation and learning how to convert existing sites into GS.

What would be the best approach for converting the following site (as an example)

http://foundation.zurb.com/templates-pre...orbit.html

As there are several editable areas (text blocks and images) how does this fit in with the get_page_content function?

Many thanks
Reply
#2
I use plugins I18N, I18N Search and I18N Special Pages http://demo.getsimplethemes.ru/demo-en/
Reply
#3
(2016-02-19, 22:45:31)Oleg06 Wrote: I use plugins I18N, I18N Search and I18N Special Pages http://demo.getsimplethemes.ru/demo-en/

Hi Oleg

Had a look but that's not what I am looking for (I think). 

When a page is created then there is one editable area which is accessed via the get_page_content function.

If I wanted to have six areas of editable content on one page, what would be the most sensible approach.

many thanks for the reply
Reply
#4
(2016-02-19, 23:42:44)cobber Wrote:
(2016-02-19, 22:45:31)Oleg06 Wrote: I use plugins I18N, I18N Search and I18N Special Pages http://demo.getsimplethemes.ru/demo-en/

Hi Oleg

Had a look but that's not what I am looking for (I think). 

When a page is created then there is one editable area which is accessed via the get_page_content function.

If I wanted to have six areas of editable content on one page, what would be the most sensible approach.

many thanks for the reply
You can use components
You can use get_page_content(slug) - like a page within a page
You can use a plugin like 'special pages', 'custom fields' or 'simple input tabs'

EDITED! I got it wrong - it's <?php getPageContent('slug'); ?> or <?php returnPageContent('slug'); ?> for a page within a page. subtley different to get_page_content()

But really it's your choice. I think Shawn is planning an improved method of dealing with different content areas.
Reply
#5
(2016-02-19, 23:52:25)Timbow Wrote:
(2016-02-19, 23:42:44)cobber Wrote:
(2016-02-19, 22:45:31)Oleg06 Wrote: I use plugins I18N, I18N Search and I18N Special Pages http://demo.getsimplethemes.ru/demo-en/

Hi Oleg

Had a look but that's not what I am looking for (I think). 

When a page is created then there is one editable area which is accessed via the get_page_content function.

If I wanted to have six areas of editable content on one page, what would be the most sensible approach.

many thanks for the reply
You can use components
You can use get_page_content(slug) - like a page within a page
You can use a plugin like 'special pages', 'custom fields' or 'simple input tabs'

But really it's your choice. I think Shawn is planning an improved method of dealing with different content areas.

Yeah I read about the components and even made a couple, that's why I was asking what most people do. I thought after a while you would end up with a stupid amount of components though I do like idea.

What do you mean "You can use get_page_content(slug) - like a page within a page" (apologies just trying to get a clearer picture)
Reply
#6
if you have mastered the recommended plugins, everything will be just for you.
http://prntscr.com/a5b9rx
http://prntscr.com/a5bal9
Reply
#7
(2016-02-20, 00:12:34)cobber Wrote:
(2016-02-19, 23:52:25)Timbow Wrote:
(2016-02-19, 23:42:44)cobber Wrote:
(2016-02-19, 22:45:31)Oleg06 Wrote: I use plugins I18N, I18N Search and I18N Special Pages http://demo.getsimplethemes.ru/demo-en/

Hi Oleg

Had a look but that's not what I am looking for (I think). 

When a page is created then there is one editable area which is accessed via the get_page_content function.

If I wanted to have six areas of editable content on one page, what would be the most sensible approach.

many thanks for the reply
You can use components
You can use get_page_content(slug) - like a page within a page
You can use a plugin like 'special pages', 'custom fields' or 'simple input tabs'

But really it's your choice. I think Shawn is planning an improved method of dealing with different content areas.

Yeah I read about the components and even made a couple, that's why I was asking what most people do. I thought after a while you would end up with a stupid amount of components though I do like idea.

What do you mean "You can use get_page_content(slug) - like a page within a page" (apologies just trying to get a clearer picture)

You can use private pages to store content for your theme areas. Use getPageContent($page) function to get content from page $page. No plugins required for this method.
Reply
#8
I'm beginning to get the basic idea.

Thank you to everyone who took the time to reply, it's very much appreciated.
Reply




Users browsing this thread: 2 Guest(s)