2014-10-19, 04:57:46
News Manager (updated)
|
2014-10-19, 05:46:50
thats for carlos
2014-10-19, 06:10:40
@skabadip
Have you enabled GSCANONICAL in gsconfig? (that setting is not compatible with News Manager and many other plugins)
2014-10-19, 19:36:50
Hello Carlos,
there is one more question around your News Manager plugin: I tried to post an image, which seems to work well. But is there a simple way to get a thumbnail of the posted image automatically in the blog overview page next to the excerpt of the post? Without adding something manually? I would create the thumbnail in the normal way after uploading the image in GS, with a standard size of 100 x 100 px.
2014-10-20, 03:31:50
Do you mean images inserted in the body of the post, or selected in the Post Image field?
2014-10-21, 21:44:54
2014-11-09, 02:49:27
(2014-10-20, 03:31:50)Carlos Wrote: Do you mean images inserted in the body of the post, or selected in the Post Image field? Hello Carlos, I mean I would like to create a thumbnail pic in the normal GS way, use the big picture on the post page and automatically show the thumbnail of the pic in the blog overview. Is that possible? And now I have one more question: Google says my site has double title tags, since the blog overview page has the title "Blog" and all the tag overview pages have the same title "Blog". Is it possible to give the tag overview pages an individual title like "Tag: tag1 - blog - site" or something like that? Thank you for your help!
2014-11-09, 21:55:44
(2014-11-09, 02:49:27)Hypertexter Wrote: I mean I would like to create a thumbnail pic in the normal GS way, use the big picture on the post page and automatically show the thumbnail of the pic in the blog overview. Is that possible? Currently you must select an image (normal or GS thumbnail) in the post image field. What you are able to do is displaying images with different custom sizes depending of the news page type. For example, to show them in the main news page using the width/height as defined in settings, but only 90x90 in archive pages, and full size in single post view, enter this in Custom Settings: Code: single imageSize full See an example in this demo site: http://webs.org.es/newsmanagerdemo/news/ (2014-11-09, 02:49:27)Hypertexter Wrote: And now I have one more question: Google says my site has double title tags, since the blog overview page has the title "Blog" and all the tag overview pages have the same title "Blog". Yes, I have the tag title issue in my to-do list. I'll fix this for NM 3.1 In the meantime, you can insert something like this in your template, just after the <title> opening tag (and before get_page_clean_title or whatever you have there): Code: <?php if(nm_is_tag()) echo 'Tag: '.htmlspecialchars(rawurldecode($_GET[NMPARAMTAG])).' - '; ?> If you have a custom title code (I18N or other plugins) and need a different setup, let me know. I can post an alternative code snippet.
2014-11-10, 19:17:28
(This post was last modified: 2014-11-10, 19:21:15 by Hypertexter.)
Hello Carlos,
for the images I use the custom settings now with 100px and they are shown like that in the main news page. And with "single imageSize full" I get them in full size on the single post page. This is not bad, thank you! But couldn't there be a way for the main news page to use the thumbnail pics instead that I can generate in GS by standard (with a defined snippet of the image)? title: Thank you for your kind offer. Since I use the Custom title plugin I don't know if I can use your proposal. My entry in the header at the moment is: Code: <title><?php nm_post_title(); ?><?php echo(get_custom_title_tag()); ?></title>
2014-11-13, 03:11:29
(2014-11-10, 19:17:28)Hypertexter Wrote: But couldn't there be a way for the main news page to use the thumbnail pics instead that I can generate in GS by standard (with a defined snippet of the image)? I'll look into it. (2014-11-10, 19:17:28)Hypertexter Wrote: title: Simply insert the code snippet between <title> and <?php nm_post_title... By the way, I suggest you use nm_post_title(""," - "); (or similar) so that the post title and page title are separated.
2014-11-13, 19:12:47
(This post was last modified: 2014-11-13, 19:15:07 by Hypertexter.)
Hello Carlos,
this is great, thank you! It makes titles like "Tag: tag1 - Blogpagetitle..." which is exactly what I wanted. I tried to use it to give single post pages a "-" between post title and blogpagetitle, but I failed: Code: <?php if(nm_is_single()) echo ' '.htmlspecialchars(rawurldecode($_GET[NMPARAMTAG])).' - '; ?> Could you tell me what I did wrong? I think the way with Code: nm_post_title(""," - ");
2014-11-14, 05:43:34
I mean this:
Code: <title><?php if(nm_is_tag()) echo 'Tag: '.htmlspecialchars(rawurldecode($_GET[NMPARAMTAG])).' - '; ?><?php nm_post_title('',' - '); ?><?php echo(get_custom_title_tag()); ?></title> Same but shorter: Code: <title><?php if(nm_is_tag()) echo 'Tag: '.htmlspecialchars(rawurldecode($_GET[NMPARAMTAG])).' - '; nm_post_title('',' - '); echo get_custom_title_tag(); ?></title>
2014-11-14, 17:51:22
(This post was last modified: 2014-11-14, 17:52:07 by Hypertexter.)
Thank you, Carlos! It really works.
Seems I do not have the slightest idea how PHP works My trial always made things like "- posttitle", with a dash as the first letter...
2014-11-14, 23:40:20
I've been trying to figure out a .htaccess solution for setting the homepage/index as the News Manager page (with FancyURLs on, without custom permalink structure) and couldn't find out how. I think that many people already use it so but I always used NM on a subpage.
In my case, after clicking onto any post, I'm redirected to /404/ and get the Post not found message. The default .htaccess for NM is Code: RewriteRule ^newspageslug/tag/([^/.]+)/?$ index.php?id=newspageslug&tag=$1 [L] In my case, the "newspageslug" is "index", but replacing the "newspageslug" with "index" isn't sufficient. I managed to make it work by removing the first "newspageslug/" and replacing the "newspageslug" with "index" in the GET part... Code: RewriteRule ^tag/([^/.]+)/?$ index.php?id=index&tag=$1 [L] If you wanted to ask about the generated .htaccess after changing NM settings, I'm getting "Failed to generate a .htaccess sample for the current site settings " message. I have read this post of yours (2014-10-04, 18:32:51)Carlos Wrote: You get that "error" (or notice) if you use:but I guess I'm not any of these cases, permalink structure is default (the text field is empty) and I'm not aware of any custom NM URL parameters either. Thanks for any help.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
2014-11-15, 01:43:08
The first htaccess snippet you've posted is not the default one - it looks like it's for use with NMNOPARAMPOST
It's not currently possible to remove the /post/ prefix if you select index as newspage. (However you can change that prefix to something shorter like /p/ by using NMPARAMPOST)
2014-11-15, 02:42:52
I can see it now. I already forgot what NMNOPARAMPOST was, so you're right, I had it allowed.
So I disabled it, let NM generate a new .htaccess, took its NM part, added to my .htaccess, defined custom NMPARAMPOST ('akce', a 'sale' in English) and edited it according to your docs, thank you. Just in case anyone got into the same trouble, here's the solution. Added to gsconfig.php Code: define('NMPARAMPOST','akce'); Code: RewriteRule ^tag/([^/.]+)/page/([^/.]+)/?$ index.php?tag=$1&page=$2 [L]
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
RewriteRule in NewsManager has become a very interesting item, maybe because a linear URL is always better than a complicated one...
Well, I'm sooo glad that skabadip and TJ found out a solution to their problems, maybe because I prefer other ones don't suffer like me lol (joke) I really can't understand the reason why even if FancyURLs is actived on GetSimple and NewsManager and the lines in my .htaccess are these ones... Code: RewriteRule events-news/tag/([^/.]+)/page/([^/.]+)/?$ index.php?id=events-news&tag=$1&page=$2 [L] ...the result - weirdly - is this url www.mysite/index/events-news/post-title Yes, a subfolder called 'index' comes out from nowhere Of course, in my 'gsconfig.php file' NMNOPARAMPOST is 'true' and no GSCANONICAL actived Any suggestion ? It could improve my headache :-P
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
2014-11-16, 00:07:20
is it in your siteurl in settings?
2014-11-16, 02:37:23
Is event-news a child/subpage of index?
2014-11-16, 02:50:07
First of all, thanks for your quick replies.
@ shawn_a and Carlos: Yes, exactly the NewsManager page ("event-news") is subpage of index.. Is it the problem?
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
2014-11-16, 03:01:03
Yes. Your news page is http://www.example.com/index/events-news/ then.
No the url of my newsmanager page is
http://www.example.com/events-news/ the problem is when I click on the posts so it shows that "index" with the normal pages i have no problems... e.g. http://www.example.com/contact/ I think the problem could be that my newsmanager page is a subpage of index... amd even tried something like Tj... but nothing.
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
Okay I tested it and
if my NewsManager Page is no more a subpage of index, then URL becomes perfect: e.g. http://www.example.com/events-news/post-title Most probably it should be a bug... Any news?
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts
2014-12-06, 01:27:46
(sorry for the delay)
I don't get it. If you set a page's parent as index, then its URL will be like SITE/index/page/ , not SITE/page/ Not a bug, it's how GS has always worked (unless you patch it)
2014-12-09, 12:48:01
and there is a way to avoid the show it?
at the moment index is showed only by NM eg: if page1 e page2 are Children of index (home) is there a way to modify the URL in SITE/page1 or SITE/page2 via fancy urls? (2014-12-06, 01:27:46)Carlos Wrote: (sorry for the delay)
My website made with GetSimple CMS is
Arte & Società www.artesocieta.eu An indipendent website about Italian Contemporary Visual Arts |
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)