-
Posts
2,766 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
how to make a parent menu item without linking to a page ?
Macrura replied to adrianmak's topic in General Support
that sounds like it would be perfect and exactly what i was hoping for! i can't think of any reason to edit the PW urls; the external link option should be all that is needed; i'll be testing your module over the next week and will report back on that topic. i think for adrianmak's usage, the menu builder module would be a time saver over doing it the old way with page tree, or using a field on the page to override the page's url for menu purposes. -
how to make a parent menu item without linking to a page ?
Macrura replied to adrianmak's topic in General Support
ok - so for the custom menu, the way i did it in the past on many sites was with a hidden branch of the page tree, usually underneath a page called Settings; Most sites i build do require the menu to be very specific and there is absolutely no way that the menu displayed in the front end can be based on the page tree; in my opinion, the page tree being used as the front end menu is only for very small and simple sites; anything more complicated requires you to build your own menu, and now that we have Kongondo's menu module, this is even easier than ever. If you take a look at that module, there may very well be a way to assign a custom URL override to any menu item; i have not tried it yet, but i am planning on using it for the next site i release which is now in admin development. once you have made your menu page tree (yes manually, one by one), and on each of those items selected the page that the menu item will link to, you can use that code to output your menu, and modify it to your needs in terms of menu markup. You can also configure the override field to be always used if it is populated. If you wish to use the page tree as-is to generate your menu, that is pretty much the same thing; you just need a field to override the page's URL in the menu and then use your output code to check if that field is populated and swap out the value of that field with the default URL of the page. -
yeah it must be the server, because that theme/template doesn't have anything out of the ordinary in terms of js
-
how to make a parent menu item without linking to a page ?
Macrura replied to adrianmak's topic in General Support
you just make a custom menu tree using a menu type template... -
hey - not to rain on anyone's module development parade, but i've been scoping instagram widgets on codecanyon, for an existing client/site who requested it, and i seem to have found at least a handful of decent ones.. @benbyf - are there any limitations that would prevent you from using something like that?
-
sounds strange - which template is it ? sounds like a javascript rewriting the url for a cdn application. or if this is your server then you must have some module or htaccess that is changing those - is this in a subdomain of another site that may have a script running in the root?
-
how to make a parent menu item without linking to a page ?
Macrura replied to adrianmak's topic in General Support
-
yeah, sometimes repeaters are quite essential and un-replaceable, as problematic as they are from the api perspective. where possible i try to use profields table, pageTable, multiplier, or textareas; but once in a rare while, those repeaters are good.
- 20 replies
-
- 1
-
-
@Mike - have you tried disabling the UpgradeCheck module, if you have that installed? I ran into an issue on Sunday night where i couldn't login to admin, and disabling that module let me back in; i got a clue from this warning [05-Apr-2015 22:36:22 America/New_York] PHP Warning: json_decode() expects parameter 1 to be string, array given in /home/user/dev/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module on line 57
-
Apostrophes in value of find() selector fields
Macrura replied to creativejay's topic in General Support
depending on which field is is you could use htmlentities($str, ENT_QUOTES); can you provide more info on the fields you are trying to match? -
@peter knight - this always works for me.. include($config->paths->templates . "hannas/minislidegal.php"); this way you can edit your hanna codes right in your ftp/editor...
-
for the admin you would need to create a module that would check that field, possibly on the buildForm hook; another possibility would be to use AdminCustomFiles and see if there is a way to check the field for empty using JS and then set the value.. but could be risky with JS...
-
@diogo- check your code.. <a class="home-link" href="/"><img src="/site-plana/templates/styles/images/plana.png"?></a> the extra ? is causing FF to not load that image
-
@lindquist - any console errors?
-
@Nico, been meaning to ask you if we could have your template editor check for this module installed and then have a setting or something to use ace extended for template editing; i'm actually already using this with your template editor, but i hacked your module hardcoded to use this inputfield
-
it's working for me; if i'm logged in, and i go to the root URL, i see processwire. if i logout and click home icon, i see the non-PW site. make sure that you are not already loading the index.html page because if that is loaded, you are already bypassed PW
-
just logged in and your site is working fine: Here is the reason why you were having problems: - you created a page called /contact/, but in your root folder there is already a directory called /contact/ so processwire would not process that URL because it is an existing dir. - inside that directory, there was no index.html file; so this was causing the server error page to appear. i added an index.html and you can now see the results of that.
-
If i were you i would make a totally new folder and move everything there, point the domain to the new folder.
-
if you PM me an admin login, i can at least check the admin to see if there are any obvious issues there;
-
How to use wordpress template for processwire?
Macrura replied to goldenghost07's topic in General Support
it's actually really easy to use a wordpress theme for PW; but you do have to have access to the output; so if there is a demo, then you can see the generated markup; you would just need to point the assets to the correct place and it should all work; I've used some pretty complex WP themes so far with PW.. main thing for me was coming up with a good way to generate the right body classes, so i have a function for that..- 7 replies
-
- 3
-
-
- processwire
- wordpress
-
(and 1 more)
Tagged with:
-
it's really hard to tell what's going on - could you provide the exact directory structure and where PW is, and how you have configured the domain name to point to the folder containing the PW install? looks like PW may be getting tripped up because of where the folders are? this is the needle: $f = dirname(realpath(__FILE__)); so it can't find the realpath because of some server config;
-
hey, not sure, but maybe you need to do this? RewriteBase /
-
the only things i can really suggest is try creating another new page under an existing page, like the example about page. if the other siblings show but the new page doesn't show then it's either unpublished, or you have some markup that is causing it to fail but if you make a new blank page using an existing template then it should show up. you may also need to test by removing the redirect temporarily.
-
Same problem here, Samsung Galaxy note
- 29 replies
-
- issues
- processwire forum
-
(and 4 more)
Tagged with:
-
let's clear up some terminology a lot of people call menus tabs. But i'm sorry, they are not tabs, or anything close to or related to tabs. It's not your fault, and a lot of my clients say 'tabs' and i have to reply 'do you mean the menu?' so when you choose to view a page, using the main navigation, something is going wrong. it depends on whether the rewrite base rule is correct. is your domain in the root? what is the URL of the child page you are not seeing? are there any server error logs, or any processwire logs? have you installed the diagnostics module and checked the server environment, to make sure it meets the requirements? have you created any new templates in the admin? for example, have you created a new page called contact, using some self-created new template, but not added that template to the templates directory?