MilenKo

Members
  • Content count

    276
  • Joined

  • Last visited

Community Reputation

69 Excellent

About MilenKo

  • Rank
    Sr. Member
  • Birthday September 17

Contact Methods

  • ICQ
    99982787
  • Skype
    mikemastercorp

Profile Information

  • Gender
    Male
  • Location
    Montreal, Canada
  • Interests
    Web development, coding, Network infrastructures, Linux, BSD, Windows, Cisco, Photography, Cooking

Recent Profile Visitors

936 profile views
  1. @rafaoski, I tried to install another profile of yours - site-bs4-master and it appears promptly in my PW 3.0.85 installation. So something else is happening and I do not blame the profile in no way, there is something else. It happened to me as well once I was exporting an old profile, I could not find it listed on the list during install. I even tried to move my files to the Default profile that was visible promptly, however, the install failed. Will test with your server out of curiosity to see how would that show the profile.
  2. Hello @rafaoski . For my test environment, I use OpenServer under windows, so it has no issues with the permissions (windows is not that tight as the Unix environment is). So far I've installed several profiles and it was working, however only with this one, I am not able to see it. What I did was to place the latest copy of ProcessWire and then copy your profile folder and files in it to the root of my domain. Then I fire up the installer and am seeing any other profile, but yours. Will try again and see what would happen. Thank you for the suggestions and links. Will try the other profile as I will be soon on paternity leave for a while so should have some spare time for my learning curve Edit: All works fine now, by redownloading the profile and extracting it to the root folder. Now I will start the exploration and learn something new. If someone has a similar issue, feel free to try to re-download the profile, maybe extract it with a different extractor if you use anything out of the built-in windows.
  3. Hey, @rafaoski I just stumbled across your kindly shared profile and decided to give it a try to check what other approaches I could borrow from the PRO's to make my life easier and the code beautiful. So I grabbed a fresh copy of PW 3.0.85 and put your profile in the default server folder. Created a local DB for the test and then browsed the installer. I can see every profile but yours on the list. I know I could upload the SQL and manually place the folders, however, would you know of any reason why the profile would not show during the install? I really like the Markup Regions approach and would be nice to play a bit with it to get used to that. I am also looking into the delayed output to mess around but one step at a time
  4. Hey guys, I know this might fall a bit off the topic, but in CKEditor, how would you call for the toolbar to be moved to a new line under the first one? In the official documentation it is said to use: '/', // Line break - next group will be placed in new line. So I tried using '/' as well as just /, but I am still seeing the toolbar extended until the end of the text box size and only after that it starts the new row. Anything I am missing here?
  5. @SamC It would be SUPERB if I can find some more info about Uikit. I found tons of mods to enable bootstrap with CKEditor but there is not much info in regards to Uikit and its custom styling and approaches. I feel like it is related to the mobile Uikit platform that is found in every Google search. Anyway, my goal is to learn frameworks and see them in symbiosis with ProcessWire. For now, I am using a pre-made HTML themes to get myself familiar with the structures etc. as I do not have much time to learn both while working and taking care of my kids, wife etc. So slowly and gradually I am adding some. In my first attempt with ProcessWire I started a Knowledge Sharing profile that has been completed using BootStrap (Premium) theme. Now I got another theme that is simpler but fits better my needs and is Uikit based. That is why I am expanding the theme with custom toolbars etc. Right now, I am reordering my toolbars to fit my idea of the editor, so once I am OK with it would share if a need is for those, that would need it
  6. Thank you @SamC So far I have not yet touched Less or Sass, but was quickly reviewing it and it seems like a pretty cool (almost a must) for my needs if I need to have some flexibility etc. Will see the SASS and try to compile it as I also do not like tinkering with CKEditor but more like learning how to create my own button etc. For example, if I want to have an accordion, button or else. And yes, I know there are tons of mods already, but I am trying to learn to make one custom.
  7. Hello all. I am also trying to modify the default CKEditor styling for "ol" tag as I am testing the uikit framework, so in order to apply the proper styling, I need to click on the ol tag in the status bar so that I can select the list properly and apply the css. Does anyone has a better idea for an approach, as to a non-tech user, this might be a bit confusing and I am more aiming at a custom button or else that would allow me to select a few lines of text and would turn them in ul/ol with the custom styling: <ol class="ol-pretty uk-list-large">
  8. Thank you @Pixrael . Will test it later on today and report. Seems like a very clean way to have it.
  9. @adrian I tested out the jumplinks and it worked like a charm. It is, however, not clear, how can I handle when I need to show the TOC not within the same field but in the sidebar. During the test, I put the Hanna code inside the body and it showed the proper values of the TOC based on the for values. So now if I can only get those values and move them outside the field it would be perfect. Presently I am playing with Uikit (getting inspired by the admin theme) so would like to show the page headings in a sidebar for easier navigation instead of having them at the top/bottom of the document and loose focus of them once a visitor starts scrolling or clicks on the hyperlinks.
  10. Thank you very much guys for all the suggestions. I am amazed again of the options to achieve the task. It seems like @Pixrael has given a complete solution and a similar one got from @Macrura but the @adrian one seems to me to be the easiest and simplest. Besides that it would be a good start to get my hands around HannaCode which I tried in the past but did not have much progress like I had with ModX Revo, so decided to play clean and simple. But it is never too late to add some more experience. Let me see how would that turn and report what was done. The way I see it, H1 tag would be the main anchor (page title) but I could use H2 for sub-anchors and going down to eventually 3-5. Would you consider a smart move to use several H2-5 tags within the same page from the SEO perspective or I should look for another way to grab them? It seems to me like H-tags would be the best to implement and would be styling the paragraphs of the text the way it is meant, but what is the best and common sense practice?
  11. Thank you @BitPoet and @abdus . Both sound as a plan, but will google for jquery toc first to see if I can come up with some easy to implement TOC.
  12. Hello again guys. Reworking my Knowledge theme, I was asked by my colleagues to add a table of content where one can click and be lead straight to the point (anchor to a paragraph or else). I was checking a few hours now as to how can this be done and I am not sure I have found an answer. Now, to better understand the need, the idea is that I have a multi line text field that would be filled up with some text so I am aiming at showing some anchors automatically upon some action from the editor's side or else. So far the only doable way I think could work is to have a keyword, class or other html chunk that would be added to the text and then the whole field content scanned for that specific code/text and added to the anchors link in the sidebar. But if that is the best approach, I am not sure yet. Btw, I am not looking at just creating anchor to a specific text inside the field, but show a table of contents outside of the echoed field (like in a sidebar or else). Writing this now, I just got another idea of creating a new field where I would have content like: title, url (where title would be presented as the anchor text and url would be the link to the content) but it gets way more complicated and I am sure there was already someone else who have thought about this and have a more elegant way of achieving the goal. I attached a demo image, where the content is $page->body and the table of content is the h1/2/3 etc. tags inside of the text field.
  13. Guys, I just edited the sidebar code as I noticed that both templates (listing and inner) were pulling the widgets from listing one only. Besides that I removed the $parent variable and inserted its value in the $widgets that now holds the proper query to listing or inner depending on the fact if the page is the parent or a child. Now it is working fine and the code got a bit shorter
  14. After rethinking the Simple Widget Logic mechanism, I decided to try to unify the sidebar code, so that it can be included on every template where a need is. To make it work for all my listing and inner view templates, I needed to add some more logic to it. So here are the extra steps I took to make it happen: 1. All page listing template selectors variable was made identical (in the example bellow I am showing the change for Recipes parent template): before: //Build a selector and limit page results to 5 $recipes_list = $page->children("limit=5, sort=-created"); after: //$list variable would be used for every parent template to unify the sidebar query $list = $page->children("limit=4, sort=-created"); 2. Removed the $parent selector from every template. 3. Changed the variable in the page rendering code from $recipes_list to $list. 4. Copied the code for the sidebar and put it in a separate file, called _sidebar.php in the main template folder. In the sidebar I had the logic now: <div class="col-md-4 col-lg-3"> <aside> <div class="side-bar"> <?php //Check if the present page has children if($page->hasChildren()) { //Grab the parent from $list and set the widgets source to listing_widgets field $widgets = $list->first()->parent()->listing_widgets; } else { //If the page is a child, grab the parent and set the widgets source to inner_widgets field $widgets = $page->parent()->inner_widgets; } //Loop through all the widgets setup in the parent template foreach ($widgets as $w) { //Including all the widgets by file name and order set in the parent widgets field include ('./includes/widget-' . $w->title . '.php'); } ?> </div> </aside> </div> 5. Included the _sidebar.php in every template (listing and inner): <!-- Sidebar --> <?php include ('./_sidebar.php') ?> <!-- Sidebar --> And voila, now the sidebar markup is unified and depending on which template is rendered the $parent is pulling its name and then all the widgets selected in the parent field are applied. An improvement would be to make the system work with a delayed output, but I am not yet there. Hopefully I will switch to it in my profile v. 2 Note: There is only one issue I see with this approach - if I decide to move the _sidebar.php to the include folder where all the widgets resign, changing the path of the widgets to: include ('./widget-' . $w->title . '.php'); works only for the parent template, but not for the children. While browsing the children pages, it shows that the widgets path is not found. That is why I had to move the _sidebar.php to the main templates folder so that the path is working for both. Maybe someone knows a way to have that fixed so that I could move the sidebar file back to /includes/ folder?
  15. I am starting to think that this approach can be used to widget-ize a profile completely if the widget names are descriptive and their code inserted in the right spot. I have had a theme for WordPress where initially there was nothing on the main page but a bunch of widgets and a big list of widget areas to insert them. Sky is the limit, but some more extent might be needed for the things to work perfectly Will try to take the approach on next project and see how it goes...