Topic Closed
franck
14 Posts

Hi

I've installed the latest version of Typesetter and added the Simple Blog 3.0.4 plugin.

The problem is that the blog section then becomes a sub-directory of the whole website.

I want to use Typesetter CMS as the blog itself.

Is there a way of making the installation directory of Typesetter CMS become the blog itself?

If not, is there an existing plugin that transforms Typesetter CMS into a blog instead of just adding a blog section in a sub directory?

Thanks!

 

 

3 years ago#10487

juergen
1.5K Posts
54.5K Downloads
16 Plugins
design, web development & visual effects

If I understand your question correctly, you want to make the blog post list your home page?

If so …

  • go to Page Manager (Admin Toolbox -> Content -> Page Manager)
  • click the 'Homepage' link below the menu selection dropdown
  • type 'Blog' -> select the 'Blog' page from the autocomplete list

 

If you want the blog post list as a (e.g. the first) menu item…

  • select the first page in Page Manager
  • click 'Insert Before'
  • select the 'Available' tab/button
  • choose 'Blog' and click [ Insert Into Menu ]

 

is there an existing plugin that transforms Typesetter CMS into a blog instead of just adding a blog section in a sub directory?

You can run Typesetter only using/showing the pages Simple Blog provides.
What do you mean with sub directory? If you mean subpages, Typesetter pages do not have a fixed hierarchy themselves - it's only about how you arrange them in the menu(s), pretty much like Wordpress.

Edited: 3 years ago#10488

franck
14 Posts

Hi Juergen,

Thank you for your kind help.

Finally I might need to keep the blog on its default location in order to be able to add pages that aren't articles.

As I've installed the whole CMS inside www.mysite.com/blog/ , I need to have the blog displayed in www.mysite.com/blog/articles/

The default installation uses the URL www.mysite.com/blog/index.php/Blog instead.

I did what's recommended on http://www.typesettercms.com/Docs/mod_rewrite_and_index.php by setting the following rules in my .htaccess :

<IfModule mod_rewrite.c>
    RewriteEngine On
 
    # Don't Rewrite For These filetypes
    # you may want to add other extensions like mp3|mpeg|wav|pdf|xml|txt
    RewriteCond %{REQUEST_URI}  !\.(bmp|css|gif|ico|jpg|jpeg|js|png|shtml|zip)$ [NC]
 
    # Don't Rewrite For Existing Files
    RewriteCond %{REQUEST_FILENAME} !-f [NC]
 
    # Don't Rewrite For Existing Directories Except for the root directory
    RewriteCond %{REQUEST_FILENAME} !-d [NC,OR]
    RewriteCond %{REQUEST_URI}  ^/$
 
    RewriteRule (.*) /blog/index.php [L]
</IfModule>

I have also added define('gp_indexphp',false); in gpconfig.php

As an improvement, www.mysite.com/blog/Blog now targets the blog area.

So my question is, how do I turn

www.mysite.com/blog/Blog

into

www.mysite.com/blog/articles ?

I want to rename "Blog" into "articles".

Can it be done within the CMS itself?

 

 

 

 

 

 

 

 

 

2 years ago#10490

juergen
1.5K Posts
54.5K Downloads
16 Plugins
design, web development & visual effects

I want to rename "Blog" into "articles".

Can it be done within the CMS itself?

Yes. When you are in Page Manager, select the Blog page, then click 'Rename / Details' in the 'Page Options' panel that appears on the right side.
You can change both the page title and the slug/URL.

2 years ago#10493

franck
14 Posts

That worked! Thanks a lot!

In fact, I didn't know there was an option "all pages" because it's hidden inside the drop down menu.

If you don't select "all pages" then the blog page doesn't get listed of course.

Last question :

Is there a way to force a trailing slash after all the pages urls so that I can have www.mysite.com/blog/articles/ instead of just www.mysite.com/blog/articles ?

Edited: 2 years ago#10494

juergen
1.5K Posts
54.5K Downloads
16 Plugins
design, web development & visual effects

Is there a way to force a trailing slash after all the pages urls …

None that I'm aware of.
It might be possible by altering some core CMS code. But such changes may easily break Typesetter's low-level redirection and url construction mechanisms that come into effect in various situations.

Although urls with and without trailing slashes will be treated the same (in amlost all situations - good read here), technically and semantically, any trailing slash would denote an actual file system directory, which is not the case with Typesetter.

But I'm curious. What would the purpose of a trailing slash be in your case?

2 years ago#10495

franck
14 Posts

What would the purpose of a trailing slash be in your case?

 

Well, I wanted to have a training slash because the average users are used to seeing URLs either ending with a file extension or a trailing slash.

www.mysite.com/blog/articles/

looks way more common than

www.mysite.com/blog/articles

in my opinion.

 

 

 

 

 

 

2 years ago#10498

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register