modifying a theme, htmlblock module???

gooeylewie

Joined: 2009-07-07
Posts: 4
Posted: Tue, 2009-07-07 20:52

I'm developing a new theme for a client of mine, and I need to add two links to the side bar of the default theme that are linked to other content. I'm trying to include the two pages in the views directory and I can't link to those pages. I get 'No direct access allowed.'

I've been searching through the codex and trying to find a tutorial that will shed some light on this for me, and am unable to find anything of real value. I believe that its a htmlblock module or something that i need to create, but I need a nudge into the right direction.

thanks in advance!!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-07-08 02:08

htmlblock module is a G2 module. are you developing a module for G3 or just want to customize the sidebar?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gooeylewie

Joined: 2009-07-07
Posts: 4
Posted: Wed, 2009-07-08 02:31

Well,
I'm trying to modify the default G3 theme to include two link. One to a bio and one to either a downloadable resume or a page that has links to a resume.
I edited the sidebar to include the link for the bio. I have the bio.php file in the theme/default/views dir. When I click on the link it goes to the correct file but, I get the "No direct script access." message because bio.php isn't in the syspath...

I'm trying to just make it work, and can't find much in regards of documentation for G3. Tried to follow a tutorial for G2, but things have changed and its not applicable.

got any suggestions?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-07-08 02:43

in the sidebar just add the full url with regular html to the file you want.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-07-08 02:50

like:

<div id="gMetadata" class="gBlock">
  <h2>Links</h2>
  <div class="gBlockContent">
    <ul class="gMetadata">
  <li><a href="test.html">test</a></li>
  <li><a href="test2.html">test2</a></li>
  <li><a href="test4.html">test4</a></li>
    </ul>
  </div>
</div>

to sidebar.html.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gooeylewie

Joined: 2009-07-07
Posts: 4
Posted: Wed, 2009-07-08 03:08

thanks but...
Thats more or less how I had it, but I want to keep the site looking the same... keep the header, sidebar, footer. Basically have a new page that looks like the normal gallery page with the three main components (header, sidebar, footer) but the main content area (#gContent .yui-g) be the content from the bio page.

Basically I copied page.html.php, changed the content to the bio content. But it doesn't work, I don't know how to add it so the mvc will acknowledge that it is in the syspath.

I'm trying to make it one autonomous site with these two extra pages.

any idea?

 
gooeylewie

Joined: 2009-07-07
Posts: 4
Posted: Wed, 2009-07-08 03:10

I did however figure out how to add it to the top menu bar next to home. Either located on the sidebar or nav bar is fine.