-
Posts
635 -
Joined
-
Last visited
-
Days Won
6
Everything posted by rick
-
Module refresh will show any changes you make to the info without having to re-install it.
-
When you navigate away from the page that uses your process, any changes should be reflected the next time you visit that page, unless you are modifying the module config fields. I have phpstorm open with my process module, and the module installed on localhost. When I make a change to the code, I simply select another menu option, such as pages, then re-select my process module menu and the changes are immediate.
-
My bad. I had snippets under modules. Since I don't want extra stuff in my templates folder I set it to use assets. Works fine now. Sorry for the oversight on my part.
-
Hi @adrian, I'm running 4.8.23 on localhost (pw 3.0.62) and I'm getting the following error when I enable the snippet runner: UnexpectedValueException: RecursiveDirectoryIterator::__construct(/xxx/site/templates/TracyDebugger/snippets/): failed to open dir: No such file or directory in /xxx/site/modules/TracyDebugger/panels/SnippetRunnerPanel.php:254 Permissions are 777 on snippets folder. Obviously I missed something, I just don't know what.
-
"Add new" menu item missing from Pages dropdown menu
rick replied to desbest's topic in Getting Started
3.0.62: The Add New button located on the far right at the top of the interface is for dealing with bookmarks, not pages. The Add Page in the screencast you post is for adding admin pages, not bookmarks. The New option displayed next to the Home entry in the page tree is for adding new pages, not bookmarks. I had the same question a while back. It's not very intuitive. edit. The Page submenu does display Add New to create a new page. -
There are also a few javascript based wizards you could use, such as jquery smart wizard, steps, form to wizard, etc. Depending on your needs, you can use processwire to create the appropriate data for whichever wizard, and then save and track the results.
-
@szabesz, Yes it appears to be the same issue still present in 84. What went wrong for me was that I attempted to install a module that depended upon another module which was not yet installed. I proceeded expecting it to install the dependency. No joy. So I did a fresh install because I don't trust any errors, regardless of how insignificant they may seem.
-
Just a suggestion for enhancement: There should be a means to prevent installation of components out of order. Yes, currently an alert is displayed. However, the user should not be able to proceed at this stage. We should have the module installation either install the dependency (as other modules state, "will install xxx") or have those modules not available until dependencies are installed. Just my $.02
-
[solved] Admin menu issues after ProcessModule install
rick replied to rick's topic in General Support
Good call. The menus now display their options correctly. -
Howdy all, I have a Process Module that installs without error. It makes the correct page under admin and the menu entry is also correctly displayed. All admin menu options function at this point. Using the default theme, when I click my ProcessModule menu entry, the execute function returns the proper data, but the admin menus no longer display their dropdown options -- I can only select from the top-level menu options. Once I select any other top-level menu option the menus function correctly. Using the uikit theme, when I click my ProcessModule menu entry, all options are removed from the header. That is, no logo, no menu options, no search. Nothing. The reno theme seems to function correctly, except maybe the icon associated with the module is not displayed in the menu. This is fresh 3.0.84 install, no hooks defined, and only Tracy and Upgrade modules installed. Has anyone else experienced this?
-
Nicely done @bernhard!
-
@diogo, Actually, my mouse stopped registering wheel scrolls a few weeks ago. On the positive side, I still have a middle button! Enabled the laptop pad and can scroll just fine with it. Wacom tablet doesn't scroll.
-
Under the Code/File organization, it would be helpful to explain ProcessWire best practices for using: A single stand-alone process module. More than one process module (required = array(other modules)). Including a stand-alone class or interface in process modules. ... Just thinking out loud.
-
I like the site. A couple of things that might be an issue is I can't scroll the screen (no scrollbar in chrome) and the initial load time is long. After that everything works great. Nice design.
-
Hi @bernhard, I like the first two options; Building a custom admin page (your post here, and @abdus tutorial), and Building a module with multiple pages and buttons. They sort of go together from an application point of view. You could incorporate real world examples, such as a help desk ticket system, or polling multiple email providers. I'm thinking more along the lines of how a user would go about creating the components, rather than the actual application itself. For example, let's use a help desk project. Some components would be: a toolbar with options to filter the content listed in an admindatatable by department, assigned person, severity, etc. Currently ProcessWire likes a vertical orientation rather than using the horizontal screen real estate. selecting from the resulting list an item to view greater detail - multiple pages. Abdus touched on this in his tutorial. selecting one or more checkboxes to perform some group action, such as changing the status, or even deleting those entries. periodically polling an endpoint to update the entries in the admindatatable (ajax retrieving new tickets, change of status, etc.) I don't want to make this overly complicated for your article, nor take too much of your time. I just notice that more people are posting about individual parts of similar scenarios and think it would be a great reference for everyone. I certainly appreciate the time you, and others here, are giving to the community. I look forward to whatever article you write on Friday!
-
Hello @flashmaster, First thing that caught my eye, you should edit your post to remove the database password. This appears to be a stand-alone php script designed to restrict access to specific pages, and not one normally associated with ProcessWire. ProcessWire has it's own built-in functions and supporting modules for governing access to pages or by certain roles, etc. Have a look: https://processwire.com/talk/topic/15261-best-method-for-restricting-page-access/ Or Adrian's excellent module https://processwire.com/talk/topic/11499-admin-restrict-branch/ The point is that you don't need to spend time converting a script to work with ProcessWire, when ProcessWire has the features either built-in or readily available. And should you have any questions the support forum is the place to be.
-
Same experience. Great alternative when a client balks at using paypal.
-
Yeah, @arjen, I've been bangin' my head against the keyboard all weekend that I've got QWERTY imprinted on my forehead. @adrian, This worked. Thank you. I had looked at your admin actions reference from another thread, but didn't want to use a form, so I passed on it because there was one other thread where ryan had replied with using form or wrapper or whatever else... I assumed a form was not required. So basically all those other threads have incorrect information in them, or that information only works with very old versions ProcessWire.
-
Thanks @adrian. I will try this approach again (Your reply in a previous topic I found) and report back.
-
Hello all, I am creating a simple ProcessModule to better understand ProcessWire itself, but have stumbled in my attempts. Here is a sample scenario: I would like the processmodule interface to have two tabs, one for an overview and the second for details. Both tabs contain two comboboxes where the user can select options. A 'refresh' button to update the display with the currently selected options. I will add the form to process the combobox selections when I get the tabs to work (unless this is out of order). I cannot seem to create the two tabs. I have tried the many examples present in the forum comments for similar subjects without success, referenced different source files, such as ProcessPageEdit, etc., a numerous existing module source code. The latest 'simplified' attempt from my most recent forum search results is as follows: ProcessExample.module class ProcessExample extends Process implements Module, ConfigurableModule { ... public static function getModuleInfo() { return array( 'title' => 'Process Example', 'version' => 001, 'summary' => 'Sample Interface.', 'autoload' => false, 'singular' => true, 'permission' => 'page-edit', 'requires' => 'ProcessWire>=3.0.42', //'useNavJSON' => true, //Yes, I tried duplicating processpageedit without success ); } ... public function init() { $this->wire( 'modules' )->get( 'JqueryWireTabs' ); parent::init(); //$this->modules->get( 'JqueryWireTabs' ); // Neither position (before/after init) works. } ... public function ___execute() { $out = ''; $out .= "<div id='{$this->className}-tabs'>"; $out .= " <div id='{$this->className}-tab1'>Tab1</div>"; $out .= " <div id='{$this->className}-tab2'>Tab2</div>"; $out .= "</div>"; return $out; } ProcessExample.js if($("#ProcessExample-tabs").size()) { $("#ProcessExample-tabs").WireTabs({ items: $("#ProcessExample-tab1, #ProcessExample-tab2"), id: 'ProcessExample-tabs', rememberTabs: 1 }); } There are no errors shown in the console, notices (except those darn css map references), or logs when executing the above. The output displays as follows: This is the resulting script references in the <HEAD> section: <script type='text/javascript' src='/example/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=1510330240'></script> <script type='text/javascript' src='/example/wire/modules/Jquery/JqueryUI/JqueryUI.js?v=1510330240'></script> <script type='text/javascript' src='/example/wire/modules/Jquery/JqueryWireTabs/JqueryWireTabs.js?v=1510330240'></script> <script type='text/javascript' src='/example/site/modules/example/ProcessExample.js?v=1-1511168979'></script> <script type='text/javascript' src='/example/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.js?v=106-1510330240'></script> <script type='text/javascript' src='/example/wire/templates-admin/scripts/inputfields.js?v=14k'></script> <script type='text/javascript' src='/example/wire/templates-admin/scripts/main.js?v=14k'></script> <script type='text/javascript' src='/example/wire/modules/AdminTheme/AdminThemeDefault/scripts/main.js?v=14k'></script> <script type='text/javascript' src='/example/wire/modules/Jquery/JqueryUI/panel.js?v=1510330240'></script> <script type='text/javascript' src='/example/wire/modules/System/SystemNotifications/Notifications.js?v=12'></script> Surely I am missing something simple, and hope better trained (and less tunnel vision) eyes can provide insight.
-
Very nicely done! Only thing I would add is <noscript>. By default I have all scripts off until I am certain of the site I visit, so an empty page is initially displayed with no indication of js/cookie requirements.
-
All of the resources, css, js, images, and fonts are taking quite a while to load. What type of hosting service is this site using, shared? I am not familiar with modernizer. Can you temporarily disable it and see if that helps any? I'm just thinking out loud about eliminating a possible cause one at a time.
-
Many of the images are taking a long time to load, for example,1021701976_1-1.1140x760.png takes 12.64 seconds. You can add setlocale(LC_ALL,'en_US.UTF-8'); to your /site/config.php to remove that error. Use whatever locale is appropriate for you. [edit] You can use the browser dev tools > network tab to determine loading issue. It will help eliminate that issue should others exist.
-
Going back quite a few decades, an online document used heading tags (H1...H6) to represent the various parts of that document, and is usually shown similar to an outline format. The <title> tag in html was used as the name of the document for search purposes -- Think of a Thesis title. As such, H1 usually represented each part's title (like a chapter title), while subordinate headings represent the different outlined segments. All search engines back then started with this foundation, and they all currently maintain the ability to extract the desired information from this structure. A number of enhancements were made to tags, specifically the title parameter. For example, <H1 title="This is a brief description of the introduction text for search purposes">Introduction Text</H1> Most every html element makes use of the title attribute, but it is more important for heading elements. It is also used with the newer <article> and <section> tags. So basically, you wind up with something like <html> <head> <title>How to setup payment gateways</title> </head> <body> <h1 title="Configuring your software to utilize various payment gateways">How to setup payment gateways</h1> <p>Somewhere in this text, and before the next heading level, you should address the Heading title attribute text.</p> <h2 title="Installing the payment gateway">Installation</h2> <p>Again, for seo purposes, you should ensure your heading title text is addressed in the content section for the current heading.</p> <h3 title="...">Step 1...</h3> <p>Step 1 instructions.</p> ... <h2 title="...">Quick Setup</h2> <p>...</p> <h3 title="...">Step 1...</h3> <p>Step 1 instructions.</p> ... ... </body> </html> Where the H1 tag is the title of the document as displayed to the user, H2 would then be similar to chapter titles, eg, Installation, etc. Now your generated TOC may consist of the H2 tags. You can construct your documents as you see fit. This is only a recommendation. [edit] Can't edit the code section :/ [edit 2] Thanks @kongondo
- 14 replies
-
- table of content
- anchor
-
(and 1 more)
Tagged with: