Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

How do I manage a blog?

14 Dec 2020, 14:09

Hi!

I want to have a blog section on the page. How do I create this in a meaningful way?

I create a main folder with the name "Blog". And for each article in the blog I create a new subdirectory under "Blog"?
2020-12-14 20_09_17-Window.png
2020-12-14 20_09_17-Window.png (19.22 KiB) Viewed 3319 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: How do I manage a blog?

14 Dec 2020, 23:31

Dane wrote:I create a main folder with the name "Blog". And for each article in the blog I create a new subdirectory under "Blog"?
That is exactly how you would manage a "blog" in X3, and exactly how it's done for our own blog:
www.photo.gallery/blog/
  • The date-based "order" of the blog posts would be set from the /Blog/ page. Go to page settings > folders > sort folders, set "date" and "descending".
  • The "order" of folders in the panel might not match the date-based order on the actual website.
  • Remember to set page settings > page > date for posts, so it's not set based on page update-time.
  • It's normal to disable the submenu for your blog page. Blog page settings > menu > [x] Hide child pages from menu.
  • Other than that, you just need to find a layout for your blog page and the posts.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

15 Dec 2020, 01:58

Hi Karl,

thank you so i try this. 
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

15 Dec 2020, 13:58

Hi Karl,

so i do the first step. Can you help me please to change the color of the date? You can't see it that well. I guess you have to do that via CSS? And is it also possible that instead of "seven years ago" the date is still there? So "seven years ago on XX.XX.2013"?
2020-12-15 20_19_02-Window.png
2020-12-15 20_19_02-Window.png (744.2 KiB) Viewed 3299 times
And maybe a found a Bug. On one blog article, the cropped thumbnail is not loadet. But the original picture in the article is there. 
2020-12-15 20_19_02-Window.png
2020-12-15 20_19_02-Window.png (744.2 KiB) Viewed 3299 times
Attachments
2020-12-15 19_55_51-Window.png
2020-12-15 19_55_51-Window.png (270.11 KiB) Viewed 3299 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: How do I manage a blog?

16 Dec 2020, 00:19

Dane wrote:so i do the first step. Can you help me please to change the color of the date? You can't see it that well. I guess you have to do that via CSS?
Indeed, especially since the images there contain lots of white and the font is thin. Try this in Custom CSS:
Code
.images figcaption {
  background: black;
  font-weight: 400;
}
Keep in mind, this will affect all captions that overlay the image like that. You can't really style only for one page only, as that would be inconsistent. The above can be modified of course, but the above example will make the background black (n on-transparent) and the font more readable.
Dane wrote:And is it also possible that instead of "seven years ago" the date is still there? So "seven years ago on XX.XX.2013"?
You can change to plain date, but you can't have BOTH "time ago" text AND date stamp. You can change date format from Settings > Advanced > Date Format.
Dane wrote:And maybe a found a Bug. On one blog article, the cropped thumbnail is not loadet. But the original picture in the article is there. 
The folder "Kamerarucksack%20Vergleich:%20Think%20Tank%20StreetWalker..." contains a problematic character ":". Although the page itself may work, this character should not exist in URL's, and creates an error with the image resizer:
http://dane-vetter.de/render/w640-c1.1/ ... 084932.jpg

You need to at least remove the ":" character. How was this folder created? I assume you made it by FTP, because that character should not be allowed when creating folders from the panel. Of course, it would be helpful for you and especially your visitors if your folder names (and page URL's) were much cleaner and shorter. Avoid special characters, empty spaces, and use -hypen or _underscore to separate words.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

16 Dec 2020, 02:32

Thank you for the CSS code, it works fine for me. 

Because of the date settings, mabe its possible in the future to be able to set the parameters for the date itself. The other options do not match the german language.  The specification "17th August 2013" should rather be "17. August 2013" for me. Just as a suggestion for the future perhaps. I think I'll leave it as it is, then it will automatically adapt to the browser language. 
 How was this folder created? I assume you made it by FTP
I createt the folder in the backend, without FTP. So it was possible to create it by the usual way. I fixet it and now it works, thank you!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: How do I manage a blog?

16 Dec 2020, 03:45

Dane wrote:Because of the date settings, mabe its possible in the future to be able to set the parameters for the date itself. The other options do not match the german language.  The specification "17th August 2013" should rather be "17. August 2013" for me. Just as a suggestion for the future perhaps. I think I'll leave it as it is, then it will automatically adapt to the browser language.
Indeed. Date formatting will inherit default PHP date formatting (English), and only the special "timeago" will load languages. In a future release, there will be languages also for standard date formatting.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

16 Dec 2020, 06:45

That sounds good. Thank you!
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

04 Jan 2021, 05:53

I have another question or, more precisely, problem with the blog:

If you already have a lot of entries in the blog, it becomes very long and confusing in the panel because you can't sort them. Where I'm talking about less than 40 posts, so not really many. 
2021-01-04 11_49_35-X3 Panel.jpg
2021-01-04 11_49_35-X3 Panel.jpg (54.25 KiB) Viewed 3255 times
Is there any solition to manage this?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: How do I manage a blog?

05 Jan 2021, 00:42

I must admit I don't quite see the problem here. X3 is a folder-based website and the menu on the left will have to show all folders in an exapandable menu no matter what. If you don't want to see the submenu, then why not keep it closed and just click the parent folder to view all items when you need to like this:
Image

When you open the menu folder, it will naturally have to expand to display all subfolders. It's not like you have to scroll the page down unless you want to navigate to those items. If you don't want to view the subfolders, then just close it?

As for SORTING, the panel will not necessarily reflect the SORT order you have assigned for the gallery, as that could be confusing. For example, you might have the blog folders set to sort by date, but the panel will always sort either by NAME or by custom sort order (if you have dragged folder items into order). If you want to have the same sort order in panel menu as in your actual block (perhaps sorted by date), then you can always drag-and-drop those menu items into the same order just for the sake of tidiness.
 
User avatar
Dane
Experienced
Topic Author
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: How do I manage a blog?

05 Jan 2021, 05:18

Hi Karl.

I wasn't quite aware that I could use the gallery view for the listing. That in the panel was not sorted properly, has indeed confused me a bit. If you only work with the expanded panel, it is already confusing when you create a new article, that you have to search for it first. I try to work with the view in the galery. 

Thank you.