Posts: 3,491
Threads: 106
Joined: Mar 2010
- What code did not work?
- These new functions are not meant to be used directly in GS templates (e.g. in the sidebar), at this moment.
But I intend to add support for that (something like "the loop" in WP). In the meantime the alternative is using NM Addons.
Suggestions welcome.
Posts: 1,928
Threads: 88
Joined: Apr 2010
Sorry, Carlos, I forgot about news manager addons. Everything is working.
Posts: 3,491
Threads: 106
Joined: Mar 2010
News Manager 3.7 beta 2 - Download
Added translation helper functions nm_e() and nm_r() so that you can have internationalized strings in your custom post layout.
Updated documentation and layout examples: http://www.cyberiada.org/cnb/news-manager-i/
Posts: 1,928
Threads: 88
Joined: Apr 2010
There is an image in the image folder, and the selection window is empty.
http://prntscr.com/jbobhy
http://prntscr.com/jbobvq
The components work fine.
Posts: 3,491
Threads: 106
Joined: Mar 2010
By your screenshots I see you're testing with GS 3.4 alpha. That's an issue not with this NM beta, but also with previous NM versions. With GS 3.3.x it should work fine, as I haven't done any changes on the imagebrowser.
Anyway thanks for reporting, I'll check that.
Posts: 1,928
Threads: 88
Joined: Apr 2010
In the previous version of the plugin image was visible.
Posts: 3,491
Threads: 106
Joined: Mar 2010
NM 3.6? Or the first NM 3.7 beta?
If you don't mind, please check again with that previous version that worked for you.
Posts: 3,491
Threads: 106
Joined: Mar 2010
It's an issue in GS 3.4 alpha. If you switch your user language to English, it works.
(By the way, it happens the same with I18N Custom Fields' imagebrowser)
I'll tell Shawn.
Posts: 1,928
Threads: 88
Joined: Apr 2010
that's right, I switched the language in the plugin I18n
Posts: 1,928
Threads: 88
Joined: Apr 2010
Hello, Carlos, now there are many frameworks, each of which in its own way represents pagination, for example:
https://getuikit.com/docs/pagination
http://getbootstrap.com/docs/4.1/components/pagination/
I'm not a programmer and I do not know how you can set changes to tags and classes for navigating through pages.
Posts: 3,491
Threads: 106
Joined: Mar 2010
The image browser (NM, I18N Custom Fields, ...) is working again on the latest GS 3.4 alpha.
Posts: 3,491
Threads: 106
Joined: Mar 2010
For UIkit, since NM 3.1 you can use custom settings:
Code: markupNav ul
classNav "uk-pagination uk-flex-center"
markupNavItem li
classNavItemDisabled "uk-disabled"
classNavItemCurrent "uk-active"
...however you cannot currently add attributes uk-pagination-previous , uk-pagination-next to Previous, Next items.
As you know, you can also do something like that for Bootstrap 3 (except for the aria-label attribute)
But in BS4 I see there are new classes .page-item, .page-link - These cannot currently be added: I would have to add support with a couple new custom settings (perhaps classNavItem , classNavLink )
Still, you cannot add attributes like tabindex="-1" or other recommended additional markup...
So either I add more custom settings, or perhaps allow generating the pagenav in a different, more flexible way. Ideally it would be with some template tags, like I've made for post rendering in 3.7 beta, but I think it would not be very intuitive, it would have a lot of conditionals... I have to think about it.
Posts: 1,928
Threads: 88
Joined: Apr 2010
Carlos, it will not be difficult for me to simply apply the CSS properties to the paginator by default.
Posts: 3,491
Threads: 106
Joined: Mar 2010
Yeah it's not difficult, I even did it myself here (uses BlueSky theme)
but I like to be able to use <ul><li>... instead of <div><span>... and customize the pagenav for css frameworks.
Also, I have in mind allowing themes to define their own custom settings so that you don't have to enter them in NM settings.
Posts: 105
Threads: 10
Joined: Jul 2015
2018-11-02, 17:52:10
(2018-04-22, 16:54:41)Carlos Wrote: (replying to http://get-simple.info/forums/showthread...0#pid62410 )
(2018-04-22, 07:03:15)Oleg06 Wrote: [...] everything is cool, the templates just work great, I'd have to make a template for the paginator
As you know, you can customize html markup, classes, etc. for the paginator, but you have to use NM Custom Settings. (If you need help with this, let me know.)
(I may add support for another template file where you can define custom settings for your theme without having to enter them in NM Settings.)
I'd like to add templating for the paginator, but I cannot think of a way to do it. Any ideas or suggestions? Any example of how would the paginator template be like? The logic is more complex than for post rendering.
Thanks a lot, Oleg06.
I am becoming stupid day after day.haha
I am reading http://www.cyberiada.org/cnb/news-manager-i/ this page.
I wonder how I make a blog page.
Which file have the template code?
Am I makng a mistake?
Posts: 105
Threads: 10
Joined: Jul 2015
(2018-05-02, 04:58:40)Carlos Wrote: Yeah it's not difficult, I even did it myself here (uses BlueSky theme)
but I like to be able to use <ul><li>... instead of <div><span>... and customize the pagenav for css frameworks.
Also, I have in mind allowing themes to define their own custom settings so that you don't have to enter them in NM settings. .
http://webs.org.es/newsmanagerdemo/news/
Oh my gosh.
I would like to make this kind of theme.
How did you make this template?
Posts: 3,491
Threads: 106
Joined: Mar 2010
I didn't made it, it's Blue Sky theme by Timbow.
I just added some styles to the main.css file.
Posts: 105
Threads: 10
Joined: Jul 2015
(2018-11-03, 01:02:02)Carlos Wrote: I didn't made it, it's Blue Sky theme by Timbow.
I just added some styles to the main.css file.
Great! I can't figure out css structure.
Does somebody layout and explain css structure?
I am using your css code. haha.
Posts: 3,491
Threads: 106
Joined: Mar 2010
There are many resources for learning CSS, e.g. https://www.w3schools.com/css/
Of course you can re-use and adapt those styles. :-)
|