2011-04-16, 06:14:44
Hello:
First off on a scale of 1 to 10 in knowing PHP I am a "Newb."
The reason I am trying to use GS is I want to make a site but I also want to learn how to manage my content.
So far I have done a great job in setting up my site in what I want on it. The look and feel of the site is not polished in means of content and layout but structure wise I have the components I want on my page.
What I am having a problem with is having the gallery appear within the page.
It will help if I explain the structure of the site.
I want all "content blocks" (Video, article, headline, link-block and gallery) to originate from the page.
I have currently accomplished this with everything except the gallery.
Using "I18N Custom Fields" I have created the following custom fields.
1: Video "WYSIWYG"
2: article "WYSIWYG"
3: linkblock "WYSIWYG"
4: pics "WYSIWYG"
My code is:
The Gallery is called "tester" and when I use the direct PHP call to the gallery (third line in the code) the gallery shows up.
What I would like to do is define the gallery in the actual custom field in the page and have the template look for this and display what ever gallery name I define in the page.
I tried putting the php into the "pics" field on the page but it ignores it.
The last two lines of code are just me trying to figure it out and the "gallery.php" is just a page with the third line of code in it.
Basically I am trying to build a page with several different elements in it and I think I have done most of it but this last part is stumping me.
Here is the link to the page, ignore the content in the page as it is just placeholder information for the purpose of filling up the content boxes. Also ignore the layout as I have not refined the boxes at all either.
http://www.banooner.com/pmfm3/index.php?...new-fields
First off on a scale of 1 to 10 in knowing PHP I am a "Newb."
The reason I am trying to use GS is I want to make a site but I also want to learn how to manage my content.
So far I have done a great job in setting up my site in what I want on it. The look and feel of the site is not polished in means of content and layout but structure wise I have the components I want on my page.
What I am having a problem with is having the gallery appear within the page.
It will help if I explain the structure of the site.
I want all "content blocks" (Video, article, headline, link-block and gallery) to originate from the page.
I have currently accomplished this with everything except the gallery.
Using "I18N Custom Fields" I have created the following custom fields.
1: Video "WYSIWYG"
2: article "WYSIWYG"
3: linkblock "WYSIWYG"
4: pics "WYSIWYG"
My code is:
Code:
<div class="mainHeadline"><center><HR /><h1><?php get_page_title(); ?></h1></center><HR /></div>
<Div class="storyContent"><center><?php get_custom_field("video"); ?></center>
<div><?php gallery("tester"); ?></div></div>
<div class="storyBody"><?php get_custom_field("article"); ?>
<div class="linkblock"><?php get_custom_field("linkblock"); ?></div></div>
<?php get_custom_field("pics"); ?>???
<?php include('gallery.php'); ?>
The Gallery is called "tester" and when I use the direct PHP call to the gallery (third line in the code) the gallery shows up.
What I would like to do is define the gallery in the actual custom field in the page and have the template look for this and display what ever gallery name I define in the page.
I tried putting the php into the "pics" field on the page but it ignores it.
The last two lines of code are just me trying to figure it out and the "gallery.php" is just a page with the third line of code in it.
Basically I am trying to build a page with several different elements in it and I think I have done most of it but this last part is stumping me.
Here is the link to the page, ignore the content in the page as it is just placeholder information for the purpose of filling up the content boxes. Also ignore the layout as I have not refined the boxes at all either.
http://www.banooner.com/pmfm3/index.php?...new-fields