-
Posts
533 -
Joined
-
Last visited
Everything posted by adrianmak
-
-
Here is the code , which is copied and simplified from a function of pw's default profile function renderList($items) { if($items instanceof Page) $items = array($items); $out = ''; foreach($items as $item) { $out .= "<li><a href='$item->url'>$item->title</a></li>"; if ($item->hasChildren()) { $out .= renderList($item->children); } } $out = "<ul>$out</ul>\n"; return $out; } However the output markup is not I desired. <ul> <li><a href="/about/">About Us</a></li> <ul> <li><a href="/about/history/">History</a></li> <li><a href="/about/location/">Location</a></li> </ul> </ul> I want the markup should be, the parent root should be on the same level as of it's child. Like <ul> <li><a href="/about/">About Us</a></li> <li><a href="/about/history/">History</a></li> <li><a href="/about/location/">Location</a></li> </ul>
-
I like to use a ckeditor plugin media embed, which is allow you to paste embedded code from video platform like youtube, vimeo and etc http://ckeditor.com/addon/mediaembed
-
When I add big image inside body content, and want to user to click the image and link to it's original size CKEditor provide insert image to link to original size, but the original size image is opened on the same browser windows. Is there any selective option provided, to allow user to open a new window.
-
Regarding page reference for page/product's categorization
adrianmak replied to adrianmak's topic in General Support
How or is it possible to select multiple child root as page reference ? instead of using two separate page reference fields Something look like..... -
I knew that page reference field can be user for categorization. Is it possible to select a child root as page reference. Take an example. I created a page named Categories, the page structure look like below Home (site root) +--About Company +--Our Services +--Product +--Contact Us +--Categories +--News +--Company news +--Market news +--Products type +--plastic +--metal +--Pictures type +--plastic +--metal +--paper +--company The child pages , News, Products type, Pictures type, under categories are no association to each others. For a Product page with a page reference field, only "Products type" has meaning to Product. Could I select "Products type" child root as page reference ?
-
neither permission nor setting is working
-
PHP 7 has been released. I cannot stop myself to take a test with pw. Win8.1 x64 Host machine testing environment is a vagrant box ubuntu 14LTS x64 (clean OS) PHP7 used Ondřej Surý PPA https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0 PW 2.7.1 stable Installation of php 7 and PW is error free. When I tried to login pw's admin, It returned "This request was aborted because it appears to be forged." Then I started another existing vagrant box running php 5.6.. There is no such an admin login issue
-
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
I think the name guestbook, which is used in a client's old website (he wanted to revamp the website). After explained by client, the functionality he wanted, is a enquiry form. As I said from OP, the form is open for public to ask information about product. Instead of submitting the form data to a designate email address, the form data will store in database for admin to read. -
How to use pw to create a guestbook like functionality ?
adrianmak replied to adrianmak's topic in General Support
I'm appreciated if you could show a sample. Actually, I am thinking of, instead of using pw's page api, could i use something like pw's raw database api (exist?) to insert and read a db table. The submitted messages on the page tree is not necessary to show to back-end. -
How to use pw to create a guestbook like functionality ?
adrianmak posted a topic in General Support
Instead of ordinary CMS function, I would like to add a guestbook function on a pw's website. I will create a front-end public form, for users to submit comments/messages Messages are not open to public. To read users' messages, it required to login to pw's backend. It easy to use pw's core page api (under a specific page) to store users submitted messages. However in the guestbook scenario, it is not user friendly in to ordinary page tree UI, to show all submitted messages. I would like the UI looks like, when clicking the page, it will presented in a table view with a pages -
could i put the "creating a Bootstrap 2.3.2 Multilevel Navbar" code in the _init.php to run ?
-
I'm wondering there is no difficulties. Just follow the sample code markup https://metroui.org.ua/menu.html
-
does the apeisa's shopping module support pw 2.5 or even 2.6 ?
adrianmak replied to adrianmak's topic in General Support
nice -
A php script started a php session, will it conflict with original pw's session? When an instance of the php class is instantiated, it will call session_start() for it's own session, will it conflict with pw's session ?
-
The instant search is blazing fast . Could you mind share the techniques behind the scene ?
- 11 replies
-
- 1
-
Under this scenario for improving query performance, I'm wondering this filetype cache file should be hidden from users. Am I right ?
-
How to publish a cal page or a pw's page with a hashed id to public ?
-
ProcessSlider - Image sliders for ProcessWire
adrianmak replied to mauricius's topic in Modules/Plugins
a nice ui interface ~~~~~ -
I'm going to develop a simple document managment website. Registered users are allowed to upload and download on their own files. How could I protected those files indexed from search engine. Files download should be available for authenticated logon user. Other ppl, (even you copied the file's download url) could not able to download the files from the link (shared) directly, and it will redirect to a user login form. pw 2.6.x has been released a while, any such a feature for private and public file ?