vanmol
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] tweaks for request_linkThx Roland,
The reason I want to adapt the email address is that I want to test a few of the records that are already in the database (total ~700).With your hint of record_edit_url filter I was able to solve my issues.
<?php
add_action(‘pdb-before_send_retrieve_link_email’, ‘pdb_myemail’);
function pdb_myemail ($s) {
$s->recipient=’[email protected]’;
return ($s);
}add_filter (‘pdb-record_edit_url’, ‘pdb_myurl’);
function pdb_myurl($s) {
$s=str_replace (“record”,”list”,$s);
$s=str_replace (“pid”, “search_field=code&value”,$s);
return ($s);
}
?>Forum: Plugins
In reply to: [Participants Database] Sanity check for the choice of particiption databaseHi Roland,
Is it possible to replace the record_link in the list display by one that links to the pdbrecord page instead of the pdbsingle page?SI have several records grouped together by a CODE field, such that the URL
http://site/pdblist?search_field=code_field&value=CODE displays a set of records.
When I use one of the record fields for a record_link, that link brings me to the URL http://site/pdbsingle?pdb=xxx (where xxx is the ID of the record).I would like to link to the record (update) page: http://site/pdbrecord?id=xxx or preferably http://site/pdbrecord?private_id=yyy (for security reasons)
UPDATE : I just found this:
https://xnau.com/adding-an-edit-record-link-to-the-frontend-list/
I think I should read that first- This reply was modified 6 years, 11 months ago by vanmol.
Forum: Plugins
In reply to: [Participants Database] Sanity check for the choice of particiption databaseI just like the pdb too much to give it up too soon. If you can’t get it to work, change the requirements 🙂
I’m investigating to leave the idea of master/subrecords. Just one record for the whole family, which in our case has a max of 6 children.
Location info: 6 fields
Max 2 parents : 10 fields
Max 6 kids : 30 fieldssignup, record, list, single all tried out, but I have no clue how I can display a page with [pdb_single] on it after submitting a record_update. I tried the “action=Singlepage”, but that shows nothing and I don’t really understand how the record-id of the record_update page should be passed to the pdb_single page.
Forum: Plugins
In reply to: [Participants Database] Sanity check for the choice of particiption databaseDear Roland,
Thank you very much for your fast and insightfull reply. The master/sub-record(s) is exactly what I am looking for. I think it is better to look for another approach than trying to tweak the PDB for something it is not really designed for. This will save me a lot of frustration. Maybe one of the readers of this forum can point me to a solution/plugin/approach that better fits my needs.Thanks again