2013-10-10, 02:51:49
@islander
Thank you.
I may add a help page or something. Later.
The problem with this is that I wouldn't like to have a big long settings page with too many options. I prefer to keep it simple and add only the essential/most used ones.
Don't worry about this. You will be able to do this several ways, for example: put your code in a component and in your template insert
<?php if (nm_is_single()) get_component('your-component'); ?>
after the get_page_content() line.
I can tell you other ways (without the if, without a component..)
Anyway I wasn't going to remove support for nm- components in the next beta (I supposed you and maybe others are already using them)
Next beta will have functions/tags nm_post_slug() and nm_post_url() for this. They are already available in the dev version in GitHub. Until I psot another beta, I can tell you what files to download and update to have them.
I had thought about that, but as I said, I will probably re-use this component idea, but I'm leaving it for a future version, once I do some other changes. You can do everything anyway, with code in the template and/or "normal" components.
As always, thanks for your suggestions.
Thank you.
(2013-10-09, 22:46:22)TeeJay Wrote: Well, that looks good, just two little notes.
1) It would be nice if you could open a javascript popup or something like that in the setting itself with a complete list of possible options to be able to setup the News Manager without studying the documentation or this forum page by page.
I may add a help page or something. Later.
(2013-10-09, 22:46:22)TeeJay Wrote: Or, you could replace the textarea with a list of checkboxes where you could check what you want.
The problem with this is that I wouldn't like to have a big long settings page with too many options. I prefer to keep it simple and add only the essential/most used ones.
(2013-10-09, 22:46:22)TeeJay Wrote: 2) I would like to be able to keep my current setting, which is the following code of nm-bottom-single component.
...
Don't worry about this. You will be able to do this several ways, for example: put your code in a component and in your template insert
<?php if (nm_is_single()) get_component('your-component'); ?>
after the get_page_content() line.
I can tell you other ways (without the if, without a component..)
Anyway I wasn't going to remove support for nm- components in the next beta (I supposed you and maybe others are already using them)
(2013-10-09, 22:46:22)TeeJay Wrote: Both of those need a php function for getting a full URL of a post, so I couldn't use it without PHP.
Next beta will have functions/tags nm_post_slug() and nm_post_url() for this. They are already available in the dev version in GitHub. Until I psot another beta, I can tell you what files to download and update to have them.
(2013-10-09, 22:46:22)TeeJay Wrote: Also, maybe you could move the components to the NM setting to keep it all on one place, but that's up to you.
I had thought about that, but as I said, I will probably re-use this component idea, but I'm leaving it for a future version, once I do some other changes. You can do everything anyway, with code in the template and/or "normal" components.
As always, thanks for your suggestions.