how to use html blogs

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Essie

how to use html blogs

Post by Essie »

I am really new to CMS and don't have any clue what html blogs are for under the template section.  I tried to read it up at your docs but I don't see any manual about it.  Could someone please be kind to tell me what it is for and how to use it?

Also, I notice CMS doesn't work with SSI codes.  I tried using the {literal}{/literal} tags but still don't work.  Does anyone have any idea how to get around the problem?

Any help would be appreciated.
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: how to use html blogs

Post by petert »

Essie wrote: I am really new to CMS and don't have any clue what html blogs are for under the template section.
You mean BLOB. A quick search through the forums (search key: html blob) gives 3 pages worth of info on the subject.
Essie wrote: Also, I notice CMS doesn't work with SSI codes.  I tried using the {literal}{/literal} tags but still don't work.  Does anyone have any idea how to get around the problem?
Any help would be appreciated.
Does your server interpret the right files for this? CMSMS standard 'makes' .shtml files.
AddType text/html .shtml
AddHandler server-parsed .shtml

see http://httpd.apache.org/docs/1.3/mod/mod_include.html
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: how to use html blogs

Post by Ted »

In order to get the .shtml working, though, you do need to setup the freindly URL functionality.  Take a look here: http://wiki.cmsmadesimple.org/tiki-inde ... Clean+Urls
Essie

Re: how to use html blogs

Post by Essie »

petert wrote: You mean BLOB. A quick search through the forums (search key: html blob) gives 3 pages worth of info on the subject.
Yes, that is what I mean.  Sorry, I did a typo.  Yes what is HTML Blobs?  And how do I use it?

Essie
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: how to use html blogs

Post by petert »

Essie wrote:
petert wrote: You mean BLOB. A quick search through the forums (search key: html blob) gives 3 pages worth of info on the subject.
Yes, that is what I mean.  Sorry, I did a typo.  Yes what is HTML Blobs?  And how do I use it?
What about using the search function in this forum?
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Essie

Re: how to use html blogs

Post by Essie »

petert wrote: What about using the search function in this forum?
Thanks.  Found it.  I also did a typo error at the beginning at the search form.  No wonder I had 0 search result.
Essie

Re: how to use html blogs

Post by Essie »

wishy wrote: In order to get the .shtml working, though, you do need to setup the freindly URL functionality.  Take a look here: http://wiki.cmsmadesimple.org/tiki-inde ... Clean+Urls
Just just went to your link to try and still did not work.  My web server is capable of handling ssi codes.  I am already using it throughout all of my exisiting static .html files.
My main directory's .htaccess has
AddHandler server-parsed .html

The cms files are stored in it's own directory at /cms folder
I've added .htaccess to cms directory so (public_html/cms/.htaccess) according to the instruction you gave me with the following codes:

php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_flag session.use_trans_sid Off

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
#Rewrites page.shtml as index.php?page
RewriteRule ^(.+)\.shtml$ index.php?page=$1

Then in config.php file changed
$config['assume_mod_rewrite'] = false;
$config['page_extension'] = '.html'; (because I savea all my ssi files in that extension)

to
$config['assume_mod_rewrite'] = true;

Then, in the templated I added the ssi codes like: but I get nothing in the preview screen.

I tried playing around with
#Rewrites page.shtml as index.php?page
RewriteRule ^(.+)\.shtml$ index.php?page=$1

by uncommenting one or the other.  I even tried to change the .shtml to .html.  Still not working.
Did I miss something or forget a step?  Thanks.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: how to use html blogs

Post by Ted »

Instead of using SSI, you should just make an HTML Blog with the html in footer_copyright,html and insert that blog into your template.

It's just more unnecessary overhead to handle the same thing.

Plus, I'm not sure if apache will even parse SSI if it's doing mod_rewrite.  I think mod_rewrite does it's thing first before any of the other processing.
Locked

Return to “CMSMS Core”