Jump to content

Page issues please help


craig757

Recommended Posts

Hi i created a skin about 3 years ago for my va this has since folded after some consideration we are building a new va i dont have any of the old files left but i cant for the life of me remember exactly which line of code that has to be removed to stop pages being added to the navbar. Also i cant remember the line of code to call a specific page i.e to use on the front page instead of module calling. hope some one can post these lines of code for me as i have spent ages trawling through the search and forums here to no availe to find dead links or no advise

if you cvould help it would be appreciaited

Many thanks

Craig

Link to comment
Share on other sites

Okay! Let's start with the page links.

When you create a page from the Admin Center, you will notice that there are two (2) boxes on the bottom of the edit/create page. One says "Public" and the other says "Enabled". These two boxes determine who sees the links in the navigation menu. I have another post in here somewhere that describes their functions, but don't remember where, so I will explain what they do.

Public: This means that the page link will show in the navigation menu whether or not you are a member of your Virtual Airline. If you take the check out of the box, the link will only show if you are logged in.

Enabled: This means that the page link will show in the navigation menu to your members only. If you prefer to not have the link show in the navigation menu at all, then you will remove the check from the box**.

**Removing the check from the box does not disable the page what-so-ever, it just determines whether or not you prefer to have it show in the navigation menu.

Whenever I create a page, I leave both boxes empty, and direct link to the page from the Profile Center (profile_main.tpl).

Now let's take care of your second question.

I hope I understand you correctly. If you are wanting to display the link on another page or multiple pages, there are two (2) options you can do. Lets say that you have created a page called Videos. (The following examples will show you the different ways to show the link to Videos).

OPTION 1: Text link

<a href="http://www.yourwebsitename.com/index.php/pages/videos">Videos</a>

OPTION 1 Result: Videos

OPTION 2: Image link

<a href="http://www.yourwebsitename.com/index.php/pages/videos">
			<img src="http://www.yourwebsitename.com/images/profile/camera.png"><br/>Videos</a>

OPTION 2 Result: (Hover over image) camera.png

I hope you are getting the results you are looking for. ...happy coding

Link to comment
Share on other sites

Jeff thank you for the reply,

the second bit is quite what i was looking for in the frontpage.tpl it has the code for bringing the news module to the front page what i am trying to do us use a php include is it to automatically got to a page i have created so instead of maincontroller calling news i want it to display one of my own pages

thank you so far for the help

Craig

Link to comment
Share on other sites

Not sure how exactly that can be accomplished. What you can do is enter your frontpage_main.tpl and add some coding in there manually to have it show. I don't know what your template is, or what the news module looks like since there is no link to your website. But you can try something along these lines....

<h2><span></span>Newest Pages</h2>

               <div class="body">

                   <a href="http://www.mywebsitename.com/index.php/pages/tours">Tours</a><br />
                   <a href="http://www.mywebsitename.com/index.php/pages/videos">Videos</a><br />
             </div>

          	  <div class="box_bottom"><span></span></div>
           </div>

Link to comment
Share on other sites

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.

Loading...
×
×
  • Create New...