Page 1 of 1

Anyone have some suggestions how to set up a tutorial site

Posted: Thu Jun 09, 2011 8:41 am
by dazzyweb
Hi

I am trying to build a site with a list of tutorials
There will be about 30 different catergories and under those there will be anything from 2 to 6 tutorials in each catogory

These will just have text and pictures

Does anyone have any suggestions of the best way to go about this?
Should i just make a sepertate page for each tutorial or is there some better way of making this

Any suggestions would be appreciated

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 8:44 am
by uniqu3
You could have a look at News or CGBlog modules, these are meant for maintaining and writting articles.

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 8:49 am
by dazzyweb
Would that be a better way to go than setting up individual pages?

If so which would be the better option to go for?
News or CGBlog module?

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 8:55 am
by uniqu3
CGBlog is a fork of News module, so these two are very similar, but with CGBlog you have for example option to post an article in multiple cateogries.

The best option is to try both and choose what suits you best.
I think using modules instead of regular pages would be a better option, at least from my point of view, as some day you might decide to change structure of your site or after 1-2 years you would have 1000 articles, with articles separated in a module you have a all in one place, which results in better maintanability. Just my thoughts.

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 9:24 am
by dazzyweb
Thanks for you help

I will check them out

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 1:11 pm
by dazzyweb
with cgblog or news, If i make catogories and under them my articles

How can i display a list of the catogories and the articles under each catogory for example like below.

.catogory A
.article1
.article2


.catogory B
article1
article2

I assume i would have to change the summary template
Does anyone know what smarty code i would need to put
Also i would like the articles in a certain order under each catogory

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 09, 2011 8:26 pm
by uniqu3
I would probably go with Category list and Summary template combo, maybe there is a better way.

For example if you want unordered list, the category tmeplate could look like this:

Code: Select all

<ul>
{foreach from=$categories item='one'}
  <li><a href="{$one.url}" title="{$one.name}">{$one.name}</a>&nbsp;({$one.count})
     <ul>
      {CGBlog summarytemplate='yourtemplatename' category=$one.name}
     </ul>
 </li>
{/foreach}
</ul>
Then summary template summarytemplate='yourtemplatename':

Code: Select all

{foreach from=$items item=entry}
  <li>
     <a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a>
  </li>
{/foreach}
And then you simply call the module in Template or content:
{CGBlog action='browsecat' browsecattemplate='nameofyourcategorytemplate'}

Didn't test this if it works, so i hope it helps you ;)

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Fri Jun 10, 2011 1:23 pm
by dazzyweb
Thanks for you help

That works perfectly :-)

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Thu Jun 16, 2011 7:46 am
by dazzyweb
Hi

still working on this site :-)

It seems that maybe i will have to switch to using normal pages since i can't seem to find a solution to a problem i now have.

I need each article i write to have a few sections that will have named anchors and i need to link to these from a menu at the side.

Do you know any way of doing this?

I see i can make up a normal page and put named anchor tags in there and then create some new pages with a redirecting link to link to these named anchors on the page but i think this is less than idea and a bit messy but does work.

Basically i need many pages each with sections that will be divided by named anchors and then a menu on the side that has the list of pages each with another list underneath pointing to the named anchors of the page

I hope you get what i mean

Maybe i am going about this the wrong way so any ideas would be appreciated

Re: Anyone have some suggestions how to set up a tutorial si

Posted: Fri Jun 17, 2011 7:47 am
by dazzyweb
no worries I sorted it all now :-)

I put the links to the named anchors of the articles in the summary section of the article and then adjusted the summary template so that just the link to the artcles and the links to the named anchors came directly underneath.
Don't know why i didn't think of it before but i am new to this system

Thanks again uniqu3 for your previous help