Jump to content

virtualgadjo

Members
  • Posts

    290
  • Joined

  • Last visited

  • Days Won

    4

virtualgadjo last won the day on February 17

virtualgadjo had the most liked content!

1 Follower

Recent Profile Visitors

4,211 profile views

virtualgadjo's Achievements

Sr. Member

Sr. Member (5/6)

178

Reputation

  1. Hi, i'm working on a website wieth pages using a lot of page reference fields as tags/categories adding those fields to the search index works very well but i wonder in it's possible to get only the references title in the serach_index field currntly i get two arrays one with the reference field title and the ids of the referenced pages [field: xxxx, field2: xxxx...] and an other one with the names of the pages [field1: page-name, field2; page-name...] and i wonder if there is a config otion to get only the pages title (array or not) without the field name i.e refpage1 title refpage2 title have a nice day
  2. HI @protro honestly, i think that your search form being... a form πŸ™‚ you can simply add an evenlistener to it preventing the default submit event or if your prefer the keydown event if the keycode is 13 (enter) in case it helps have a nice day
  3. @imandreas really funny this short delay but sure there must be something else allowing it to start again from every movement in the admin or you would be unlogged all the time and get crazy πŸ˜‚ i'll have a try at this module to try and understand a little more how it works but it still doesn't tell us where the problem was... maybe it simply needed an update due to the php version and re-installing it did that update by itself!? have a nice day πŸ™‚
  4. Hi @imandreas really glad you solved it! πŸ™‚ and wow, 50 secosds for a session lock, you have to be typing faster than ussein bolt πŸ˜„ have you checked if re-installing the module has changed this curious delay? have a nice day
  5. hi, hard to really answer not knowing the exact situation, local, online... but the first thing that comes to mind would be if online,, has your hoster suddenly changed the php version (a simple phpinfo in your website root will tell you) if yes, can you choose your php version and go bak to the one used when everything went well before updating your pw install and then, why not, upgrading again the php version up to one with which eveything is ok of course, all this if there was a time when averything went well, usually the case with pw πŸ™‚ if not, let us know with some more details about the full situation, config, online or not, pw release, php version and so on have a nice day
  6. Hi all, just added a repo for the 3.0.246 rmaster branch release even if very few changes (only two sentences about a potential page "trash" status error) since the 3.0.244 one https://github.com/virtualgadjo/pw-30246-lang-fr have a nice day
  7. Hi @adrian thanks a lot for your answer and yes, it helps a lot and proves that i have to update the module πŸ™‚ very good idea this separate option for the system dates πŸ™‚ the funny thing is that i usualty set the output on non formatted for the date field as well as the system date fields as i onten have to use my own multi language formatting function but in this case i just need a readable "modified" date in the csv as a reminder thanks again for your answer, update in progress within two minutes πŸ˜„ have a nice day
  8. hi, to be honest when it comes to CKE i tend to use js extra config, for example, in the site/modules/InputfieldCKEditor folder i put a file called config.js with CKEDITOR.editorConfig = function( config ) { CKEDITOR.config.fontSize_sizes = '8/.5rem;10/0.625rem;11/0.6875rem;12/0.75rem;14/0.875rem;16/1rem;18/1.125rem;20/1.25rem;22/1.375rem;24/1.5;28/1.75rem'; CKEDITOR.config.extraAllowedContent = 'section[id,class]'; }; that will define a custom font-size combo list and, just tried and check this one, allows me to add sections with an id and or classes even with ACF on (new for me as i didn't use them before but it was fun to try πŸ˜„) but htmlpurifier off as i don't know how to play with its config, i never did... i'(m sure it's quite easy to extend up to whatever else you need to allow
  9. Hi @adrian i'm wondering where i could put my saussage like fingers to get the las modified date (and why not the created one) as they are stored in the db (mysql readable dates) instead of the unix timestamp i get in the output, weather i ckeck the outpu formatting or not (which sound quite normal as they are not really fields :)) if ever i could even use a formatting function somewhere in the code, of course, i take πŸ™‚ i'm sure i must have missed something but, so far, i can't see what and where... thanks again for your help πŸ™‚ have a nice day
  10. i still have some websites done when pw used cke and the native pw div plugin works fine i've also used the cke one but those you download often need some dependencies (panel, dialog, richcombo and so on) to work, the div manager one needs dialog coming to htmlpurifier and acf, i rarely use them but if yes (could be important for front end editing which i never allow...), you can allow some extra content to tell ACF not to delete some tags you need and not to go crazy πŸ˜„ (this is more for cke, with tinymce it's a bit simpler with custom json settings like { "extended_valid_elements": "section[width|height|title|aria-labelledby]" } just an example you can go far further πŸ™‚ have a nice day
  11. Hi, just in case, you may be interested in this little thing i wrote after a thread i took part of about the same topic πŸ™‚ https://github.com/virtualgadjo/pw-tinymce-div-plugin have a nice day
  12. Hi @AndZyk actually, the first thing i wuld think about is that when your post number grows, the two categories and tags folders will be a little less easy to find and modify but, honestly only an admin usability problem for me, the important thing is what you say about this url thing and not allowing url segments (no security issue with them if you use a simple regex to say what you allow and a simple die if somebody puts something taht doesn't match nor is in the retreived/checked arrays) as, i must be used to too complicated demands of categories and/or tags selections and most of all, even with simple ones the necessity to allow mutiple categories for one post, if only one category allowed by post i would simplify the structure with the one i showed in the previous one as yours πŸ˜„ in the end, when it comes to seo the real important thingis this only one url for a blog post whichever list/category/tag you're linking from and you are absolutely right, there no right or wrong structure, the only question for me is which one makes things the most simple to use depending on what you need (and, in a certain way, on who will use it, you and i are "a liitle" used to pw and its incredible features, it's not always the case of all the people we make website for and i tend to try and give them the most obvious admin i can, their love and addiction to pw will grow and let me be maybe a little more pw geeky along the website life πŸ˜„ Have a nice day
  13. hI, maybe i should explain a litte more πŸ™‚ in the structure i use, blog posts are indeed children of the main blog page (and template, i'll go back to this later) and categories an tags are just a way to select which posts you want to display depending on url segments the important thing to me is that, whatever "list" you're coming from, domain/blog/ domain/blog/tag_n/ domain/blog/cat_n/tag_,n/ and so on, when you click o a post its url will alwasys be domain/blog/post_n, no duplicate content, url segments making easy to use back to the list link, bookmark (and are prettier than js url hash but those could be used too) now if you're sure (iron sure changing your mind would be painful to restructure), the posts will only belong to one category, @AndZyk's structure is a the best solution keeping only the tags outside the blog "folder" --- Blog -> template blog-index Category 1 -> template blog-category Post 1 -> template blog-post Post 2 Post 3 Category 2 Post 4 Post 5 Post 6 Category 3 Post 7 Post 8 Post 9 ... Tags -> template blog-tag-index Tag 1 -> template blog-tag Tag 2 Tag 3 ... @Alpina, well yes and no πŸ˜„ first of all think of the blog with 50 say 100 posts, coming into the admin to add a category or a tag, i don(t know why but i think you would be happy to find those "folders" outside the main blog one instead of having to look for it under a tide of posts, less clicks, best life :) and as pw makes my life (and my clients' one) so easy, i try to keep it this way πŸ™‚ the other thing, and in this case i'm always thinking i'm making the website for somebody else, friend, or client and not for me..,. i'm a huge fan of the children tab features which template is allowed for parent/children, in this case, when my victime clicks on the new button of the blog parent the created child has a blog_post template without having to choose (and make potential mistakes) well you could say that setteing the category and the tag parent templates on can't be used for new pages it would work too but think about the previous point i spoke about i have maybe a strange habit but making a websit i always think - as if it is not for me (well that's mainly the case πŸ™‚ ) - think of it not as it is just when i'm making it but a few months or years after being used, sort of a reality principle and when thnking about a structure, i'm under a storm of "what if...?" (and so are my victims :D ) there must be no exceptions, each exception becoming a rule, it makes things a liitle longer to decide but so more confotable to use afterwards... well i think i should call it a post :D have a nice day
  14. Hi, sorry to be so late to answer, hit week... πŸ™‚ actually it's quite simple, i would use your folder but this way Blog -> template blog-index Post 1 -> template blog-post Post 2 Post 3 Categories -> template blog-cat-index Category 1 -> template blog-category Category 2 Category 3 ... Tags -> template blog-tag-index Tag 1 -> template blog-tag Tag 2 Tag 3 ... then in your blog post template i would add two page-reference fields, one for the categories (parent => categories) and on for the tags (parent = well, guess :)) this way each post can easlily belong to various categories and have as many tags as you need afterwards, for your main blog index template allowing page numbers and url segments it's easy to add a selection of the posts based on the categories and/or the tags with,, in both cases, the ability to have a pagination as well as for the main list of posts depending on the way you want to filter your posts you'll just have to check the url segemnts, if only one (pagination or not, you can check if it is a category or a tag, if two either you decide the order (category/tag) or just check what kind is each one (easy to do making arrays of the available categories and tags to check in which one is which segment) something more, this way, each post will just have only one url yoursite.com/blog/thepostname no matter from which selection you're coming avoiding many potential isszues with duplicate content, categories and tags being only a way to select which posts are displayed on your page hope it's a little more explicit πŸ™‚ have a nice day
  15. hi, well, first i must say for many reasons (seo, menu building, sitemap and so on) i wouldn't structure e blog this way, instead i would put the two parents (categories and tags) outside the main blog parent page and then use them with page reference and url segments but well... now if you want to easily cheat, blog posts are usually ordered by reverse chronological order, then guess, add your date field to the, categories and tags parent pages and set them with a last century date πŸ˜„ job done, those two parent pages children can still be ordered the way you want have a nice day just modified to say @AndZyk was faster to have the same king of idea while i was writing πŸ™‚
Γ—
Γ—
  • Create New...