Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager 3.7 beta
#51
- 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.
Reply
#52
Sorry, Carlos, I forgot about news manager addons. Smile Everything is working.
Reply
#53
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/
Reply
#54
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.
Reply
#55
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.
Reply
#56
In the previous version of the plugin image was visible.
Reply
#57
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.
Reply
#58
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.
Reply
#59
that's right, I switched the language in the plugin I18n Smile
Reply
#60
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.
Reply
#61
The image browser (NM, I18N Custom Fields, ...) is working again on the latest GS 3.4 alpha.
Reply
#62
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.
Reply
#63
Carlos, it will not be difficult for me to simply apply the CSS properties to the paginator by default. Smile
Reply
#64
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.
Reply
#65
Tongue 
(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 Smile

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?
Reply
#66
(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?
Reply
#67
I didn't made it, it's Blue Sky theme by Timbow.
I just added some styles to the main.css file.
Reply
#68
(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.
Reply
#69
There are many resources for learning CSS, e.g. https://www.w3schools.com/css/

Of course you can re-use and adapt those styles. :-)
Reply




Users browsing this thread: 3 Guest(s)