-
Posts
688 -
Joined
-
Last visited
Everything posted by Christophe
-
"Also if you add description on your uploaded image, alt tag will be appear with your description." I'll add that, for this part, make sure that you have the "Markup/HTML with image management" option activated at Content Type in the Details tab (Admin > Setup > Fields > Edit Field: yourckeditorfield).
-
Is it possible to make 9gag.tv like website using processwire?
Christophe replied to welski's topic in Getting Started
Seo functionality can be quite complete with very little php/processwire code. Like for example, for the description: $home_summary = $pages->get('/')->summary; if($page->summary) { echo "<meta name='description' content='$page->summary' />"; } else { echo "<meta name='description' content='$home_summary' />"; } (Or with $home_summary = $homepage->summary; if $homepage = $pages->get('/'); is already in _init.php for example.) If the page's summary field is empty, it uses the content of the homepage's summary field. For the browser (page) title, you can, for example, have something like: echo "<title>{$page->get('browserTitle|headline|title')} | City - State | Name of the Company</title>"; (With or without curly braces depending on the context...) If the browserTitle field is empty, then it uses the headline field's content. If the headline field is empty it uses the title field. For the headline (page title), you can have something like: echo "$page->get('headline|title');" (Or with $title if $title = $page->get('headline|title'); is already in _init.php for example.) You can of course modify it for your needs. Otherwise, someone asked me if I could translate, customize... one specific wordpress template (with a lot of widgets, etc.), that is only supported in English. And how much it would cost. I'm probably not going to do it... If I could have a good profile for this "tv" website project (with youtube, dailymotion, and self-hosted videos), with the possibility, among other things, to create "channels" a bit like on youtube with user accounts (that would be the "channels" category for instance), I would be ready to pay for it. For a video/tv website, a real estate website, a directory website... it would perhaps be interesting to have topics where we list the functionalities often needed, the modules that could be used, and so on, and how to modify/customize them eventually, etc. -
uikit Dropdown "Navbar modifier" menu converted to ProcessWire
Christophe replied to Christophe's topic in General Support
Hello, I pasted it here in part in case some newbies want to use it. And eventually to modify/improve it a little bit. I like it because it's close( r ) to the html version, short(er), simple( r ), and easy(/ier) to understand (at least for me). But thanks for posting your code, for me or any other person. It works. I'm a php beginner, and I like to understand what the code does. And now I know (and understand) more ways/variations of coding the same thing, than not so long ago when I tried with a kraken css menu. I may borrow you the carets, and use (more) \n (newlines) and \t (tabulations). For this project, I want to have the parent links clickable, and, depending on the case, they will link to their own page or be redirected to the first child (checkbox in the admin). And I don't want the children of the homepage. But, if one day I need some sub-sub-children perhaps I can just paste and customize it. -
I'm just starting with uikit (I'm testing/learning it on a development website for a "production" one that I would like to migrate from ImpressPages to ProcesssWire). At last I have a fully functional uikit menu (the indentation is a bit messed after copy(ing)/pasting). The conversion of the "Navbar modifier" code from http://getuikit.com/docs/dropdown.html (if I'm not wrong): <?php echo "<nav class='uk-navbar'>" . "<ul class='uk-navbar-nav'>"; // This is the container enabling the JavaScript $h_active = $page === $homepage ? " uk-active" : ""; echo "<li class='uk-parent$h_active' data-uk-dropdown><a href='{$homepage->url}'>{$homepage->title}</a></li>"; foreach($homepage->children as $h_child) { $subchildren = $h_child->children; $c_active = $page === $h_child ? " uk-active" : ""; if(count($subchildren)) { $cwsc_active = $page === $h_child || $h_child->children->has($page) ? " uk-active" : ""; // This is the container enabling the JavaScript echo "<li class='uk-parent$cwsc_active' data-uk-dropdown>" . "<a href='{$h_child->url}'>{$h_child->title}</a>" . "<div class='uk-dropdown uk-dropdown-navbar'>" . "<ul class='uk-nav uk-nav-navbar'>"; // This was the menu item toggling the dropdown // This was/is the dropdown foreach($h_child->children as $subchild) { $sc_active = $page === $subchild ? " class='uk-active'" : ""; echo "<li$sc_active><a href='{$subchild->url}'>{$subchild->title}</a></li>"; } echo "</ul>" . "</div>" . "</li>"; } else { echo "<li class='uk-parent$c_active' data-uk-dropdown><a href='{$h_child->url}'>{$h_child->title}</a></li>"; } } // output an "Edit" link if this page happens to be editable by the current user if($page->editable()) echo "<li class='edit'><a href='$page->editUrl'>" . __('Edit') . "</a></li>"; echo "</ul>" . "</nav>"; ?> The parent of an active "subchild" is also "active" (the last "functionality" that was missing). Later, when I have a bit of time, I'll look again (at) how to change the default "hover" behaviour to the "click" one (data-uk-dropdown="{mode:'click'}" instead of data-uk-dropdown). When I tried out of curiosity, there were problems with all the quotes and double quotes... I tried several things, but as I don't really need it now I'll try again later. NB: towards the end, I've changed from, for example, $h_active = ""; if(.... TO $h_active = $page ===... (with some variations in between).
-
@elabx You could create several videos for several stages in your website development (for YouTube, dailymotion...). Each of them with a good title for seo. (bigbluebutton, for example, could have been interesting as an e-learning platform. I've just seen this from a link on the homepage's website: https://moodle.com/2015/07/06/moodle-launches-moodlecloud-free-hosting-for-educators/ At least one official ProcessWire account could perhaps be created. "Up to 50 users and 200Mb disk space" "Integrated with BigBlueButton for video-conferencing – free!" A video-conferencing - and/or chat - session could be held after each video release, for instance.
-
Module FrontendUser: login, logout and register users / members
Christophe replied to pwFoo's topic in Modules/Plugins
Perhaps: /\h+/ \h+ matches any horizontal whitespace character (equal to [[:blank:]]) Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy] You can test it at https://regex101.com/ -
Maybe you don't see hidden files (starting with ".") by default (?). Are you developing on a local server/computer or on an online server? Which platform: Linux, Mac OS X, Windows...?
-
Where is he hosting his domain name? Is he using cPanel, Plesk, etc.?
-
Perhaps something with "vanilla"/pure javascript and/or velocity.js (which can be used with or without jquery). I've just found https://github.com/mmonkey/fireSlider There are certainly many others. NB: for other things, I've also found http://darsa.in/sly/
-
Hello, I've already used Reel once on a website: http://jquery.vostrel.cz/reel See "Who uses it?" for an example with logos. I think you can also make it work vertically. You can use sprites or several individual images. NB: I will remove this part later... http://www.emballagescartofrance.fr/2/guide-d-achat-cannelures-caisses-carton-americaines/ One of the two websites I made with ImpressPages CMS. I knew very little about ProcessWire when I had to create this website and choose a new CMS. Several instances of Reel (too many) on the page. You can use the mouse (wheel).
-
Found on the page of my first and only twitter follower (a South African photographer). It's a retweet he made: Could Some WordPress Plugins Actually be Harming Your Blog? http://www.blogtyrant.com/wordpress-plugins/
-
So, no ProcessWire livestream or video yet? It could be one which simply shows an example of how to convert a static website and/or integrate one of the html/css/js frameworks in(to) ProcessWire. Or one showing a migration from another CMS/CMF, for example. This could be done with 2.7 master when it is released.
-
Apparently, it's after the date the post was written that he released Lost...
-
Lost (http://corysimmons.github.io/lost/), the successor of Jeet, has already been mentioned in the Forums. But does anyone here already know Singularity (http://singularity.gs/)?
-
Nice website! I've just noticed that there is a horizontal rule appearing at 980px (confirmed by width: 900px; for #wrapper) and less. It seems you can change this with, for example, at least max-width: 900px; for .footer_small (instead of width: 900px). There will still be some few "breakpoints" where it appears, but it seems it is only the case on/in very small ranges. I've just tested in Firefox quickly.
-
So many different things... and it's only front-end development... I've just downloaded the PDF version to look at it later. Added: NB: I've also found another interesting security and hacking "platform" (among others) today, but I'm not sure if it would be a good idea to post the link here, so...
-
Let's not forget good or interesting alternatives (in no particular order): Mercurial, Bazaar, Fossil, Darcs, Veracity... And there is also (in no particular order): OOCSS, ACSS, BEM, SMACSS...
-
I see differences in the pieces of code: Identity/Strict equality (===) / Equality (==) Simple quotes / double quotes One character space (at the beginning of a new line) / a tabulation (or more space) Double quotes for blog / Simple quotes for documentation Perhaps one or several of these could cause the problem, depending on where/how your code is inserted.
-
Perhaps this can help: https://processwire.com/talk/topic/9465-text-area-outputting-p-tags/. "I checked that HTML entities was off and it was. Oddly enough, enabling and then disabling it again worked and my output is now working." Can you give us more details on your settings, show us the code that you have in your template (in case)...? And what happens if you replace "#160;" (Entity Number) with " " (Entity Name)?
-
1wp: Ability to add tags on creation of a new template
Christophe replied to thomas's topic in Wishlist & Roadmap
If after the creation of the template you weren't redirected to the templates list, and on the contrary were still on the created template's page, like it happens after the creation of a field, it would be perfect for you . I guess there is a way to add a hook or something similar to change this "action"/"behaviour".- 1 reply
-
- 2
-
For information: http://www.sitepoint.com/first-look-at-yahoos-mysql-performance-analyzer/ MysqlTuner, Percona... are also mentioned.
-
There is also HippyVM, as you might/may already know.
-
Don't forget Materialize, "a modern responsive CSS framework based on Material Design by Google.". And in case, Materialize is supported by Pinegrow (like Bootstrap and Foundation). NB: I don't know if I will ever use it. Perhaps UIkit one day. Semantic UI is apparently less simple to setup. I have been using Kraken CSS recently.
-
For a project, I had to create a "Logos" parent page, then lots of pages, each one with a logo (with just the Title and Image fields). Each time a page needed a logo from CKEditor, it took a (relative) certain time to go in the "framed" tree to select it, and at the same time, in another tab, to copy the image field description for that logo. I often needed several logos in the page. It would perhaps be nice to have the CKEditor image description "importing" the image field description by default for a given image (1). Also, I don't remember now, I'll have to check again if it's already possible to select several (page) images at once (2). In this case, it would also save time if they appeared with their image field descriptions by default (but also if we could also modify them if needed/wanted). In both cases, we could leave them as they are or modify them before inserting them in CKEditor. For image field images that were in the same pages where I had to insert them, I also wanted to enter the same description in CKEditor, so I also had to copy-paste them each time. I'm using version 2.6.1, so perhaps this already exists in the latest versions. Would it be interesting? Would it be difficult to implement (1) (and perhaps (2))? I haven't found yet if this has already been discussed.