So if you're browsing in an entry in one specific cateogry ( news ) it just would display related entries that match the tags and are in that same category (news ).
The extension doesn't support this. I'm really busy so I can't promise to add this very soon. It's not hard - just add another parameter "incategory" which turns on limitation to the categories of the current entry. This sounds so useful that I might actually do it this week ...
Constantly trying to make PivotX better ... (I accept donations through Paypal. Just send money to hansfn@pivotx.net - select "friends or family".)
actually i found a simple solution for this. I'm using the categories "pictures" and "videos" and have two different templates for those entry pages.
What i still try to achieve is using thumbnails as related links. I'm using the extension "gallery" but now don't know how to implement [[ gallery_image ]] which created the thumbnails by timthumb, to the above code . I mean something like this:
winters wrote: is there a reason why $entry.extrafields.image would not work together with the plugin?
Sorry but I am not familiar with this extension. If you are requesting an upgrade to it you can try the author.
This extension provides all the basic form elements in HTML, provides basic validation (required, some types, regexp) and provides a few basic actions, like 'hashcash protect' and 'mail' (the other two or 'validate' and 'message').
Because this extension has been build with the knowledge that you can never incorporate every wanted feature in any form system. It has been build to be extended to add new elements, new validations, new actions and new standard forms. Even the features it provides by default are created using the same framework, so there are a lot of examples you can choose from to build your own.
I must say, I understand there's not much documentation, but a one-page step by step instruction for installing and set-up would be very much welcomed!
How and where can I format the buttons and activate them, because now they don't seem to work... Thanks in advance again!
I will add some more documentation for the initial setup. However, the extension already provides 'Add standard form', which should set you up with two forms you can later customize.
A specific question, the 'submit' and/or 'reset' buttons are automatically added when you enter a title for them on the form-meta screen. In the future it will be possible to really customize the buttons, but for this initial release, it's only possible to add those.
To style the form you really need to add your own CSS, this will be in a later release of course, but it's just not ready to release right now. You can assume most field-elements just have a 'label'-tag or a '.label', with the input element after that in the HTML. Only radio's and checkboxes require some exceptions from that.
Documentation suggests you use the 'Add standard form' and play with that before trying to setup your own form. Also some other documentation updates, but it still far from perfect.
Added a default CSS for forms. Forms should at least look a bit better initially. Styling is light and can be easily overwritten in your of CSS.
- I'm not quite sure what the spamprotection entails. If currently, you fill in a valid message, but the message is all spam (I tried it with some curse words and the word viagra), the form still sends it and I still get the mail. Is that the way it was intended?
- How and where can I change the length of the entry-field for the text? I'd like it to be a bit longer.
- If I want people to fill in their phone number in a seperate field, how should I do that? Eventually I'll recieve the phone number as part of the email body, obviously
- a more difficult question: how can I be sure a hacker doesn't break into this form and starts using it for sending spam to other people? That has happened with my previous (non-pivot) website back in 2004.
Spamprotection is meant to block spammers from using your script to mail other people (your last point). It requires a spammer to execute the included javascript to generate the correct number which can be verified on the server side, this is called a hash-cash. It doesn't disable a spammer which puts in a bit of effort to use the form, but it does slow him down and he would more likely look for weaker forms to hack. It's the same protection PivotX uses for comments, only a (much) newer version of it. Also, as a side effect the module only allows an X number forms to be submitted in a certain timeframe, but that's currently only a side-effect.
In the future I could add real form throttling, or IP-blocking etc. For now this hashcash-check should be enough.
You should add CSS statements in your own styleshee, targetting the div.input and the input's themselves. There is no way to add a 'size' or 'maxlength' at the moment.
Try to the form first, before you continue. Until we have an extension to this extension to add a 'phone-type' you could use
a regular expression to check for phonenumbers. Try this only when this field works, otherwise it will be hard to spot what's wrong.
It's far from perfect but it only allows generic phonenumber characters (numbers and dashes etc) and requires a total string length of 10 to 13.
I've tried to do all kinds of stupid thing with it, like fill in half emailadresses and what not. Still worked perfectly, so thanks!
My next step: I'm going to create forms for the seminars I'm going to give. Will show you once done.
If I use a radio-button, somehow the button doesn't pass any information in the email I receive. I'm not sure what the function of the radio-button is then.
Required doesn't work for checkboxes yet. From the form-standpoint it useless, but I agree, there is a use for it when you want things like 'I agree to the terms'. Will fix.
What did you enter in the 'Text' field (below 'Source')? It should be a list of options. I will add help because I see it's missing completely