{writeContent} question

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
marin.todorov
Posts: 4
Joined: Tue Jul 27, 2010 10:44 am

{writeContent} question

Post by marin.todorov »

We are looking into having phpMyFAQ run our knowledge database,
but we have an issue with the fact that writeContent's HTML is generated from within the php code
and this makes it kind of difficult to easily adjust the markup to match our design.

Is there an easier way to change the html markup for our needs or the only way is to dig trough the php
and change the html in there?
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: {writeContent} question

Post by Thorsten »

Hi,

just change the XHTML/CSS based templates in the folder /template.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
marin.todorov
Posts: 4
Joined: Tue Jul 27, 2010 10:44 am

Re: {writeContent} question

Post by marin.todorov »

Hi Thorsten,

thanks for the fast reply, I actually could have been more specific:
we're working with the templates and we have good results integrating to our site's design,
what I specifically can't handle is show.tpl - {writeThemes} this one produces a tree of categories
with already lot of html inside - this was my question : can't find a template for the category tree
and the only place I find is the php code where there's some html code generated for the categories,
so is there a template for that or only mining trough the code is the way to change the cat tree ?

best, Marin
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: {writeContent} question

Post by Thorsten »

Hi,

ah, okay. You can format the tree by using CSS. Or do you need to change the HTML?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
marin.todorov
Posts: 4
Joined: Tue Jul 27, 2010 10:44 am

Re: {writeContent} question

Post by marin.todorov »

Yup - we rather want to change the HTML, while the tree concept does not fit with what we already have,
we have only like one level overview + links to the upper level, so tree does not fit, and can't find in the templates
a way to change that :)

Marin
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: {writeContent} question

Post by Thorsten »

Hi,

okay... then you have to dig into the PHP code in the file inc/Category.php. Sorry!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
marin.todorov
Posts: 4
Joined: Tue Jul 27, 2010 10:44 am

Re: {writeContent} question

Post by marin.todorov »

All right, appreciate the feedback, thanks

Marin
Post Reply