GetSimple Support Forum
News Manager 3.7 beta - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: News Manager 3.7 beta (/showthread.php?tid=7332)

Pages: 1 2 3


RE: News Manager 3.7 beta - Carlos - 2018-04-22

- 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.


RE: News Manager 3.7 beta - Oleg06 - 2018-04-22

Sorry, Carlos, I forgot about news manager addons. Smile Everything is working.


RE: News Manager 3.7 beta - Carlos - 2018-04-30

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/


RE: News Manager 3.7 beta - Oleg06 - 2018-04-30

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.


RE: News Manager 3.7 beta - Carlos - 2018-04-30

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.


RE: News Manager 3.7 beta - Oleg06 - 2018-04-30

In the previous version of the plugin image was visible.


RE: News Manager 3.7 beta - Carlos - 2018-04-30

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.



RE: News Manager 3.7 beta - Carlos - 2018-04-30

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.


RE: News Manager 3.7 beta - Oleg06 - 2018-04-30

that's right, I switched the language in the plugin I18n Smile


RE: News Manager 3.7 beta - Oleg06 - 2018-04-30

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.


RE: News Manager 3.7 beta - Carlos - 2018-05-01

The image browser (NM, I18N Custom Fields, ...) is working again on the latest GS 3.4 alpha.


RE: News Manager 3.7 beta - Carlos - 2018-05-02

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.


RE: News Manager 3.7 beta - Oleg06 - 2018-05-02

Carlos, it will not be difficult for me to simply apply the CSS properties to the paginator by default. Smile


RE: News Manager 3.7 beta - Carlos - 2018-05-02

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.


RE: News Manager 3.7 beta - kazu2015 - 2018-11-02

(2018-04-22, 16:54:41)Carlos Wrote: (replying to http://get-simple.info/forums/showthread.php?tid=3972&pid=62410#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?


RE: News Manager 3.7 beta - kazu2015 - 2018-11-02

(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?


RE: News Manager 3.7 beta - Carlos - 2018-11-03

I didn't made it, it's Blue Sky theme by Timbow.
I just added some styles to the main.css file.


RE: News Manager 3.7 beta - kazu2015 - 2018-11-03

(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.


RE: News Manager 3.7 beta - Carlos - 2018-11-03

There are many resources for learning CSS, e.g. https://www.w3schools.com/css/

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