Forum Replies Created
-
AuthorPosts
-
Sam Chadwick
ParticipantJust as a side point, I did new installation of Connections on another server to test the new release and found that both Add Entry and Add Entry Moderated are checked by default. Perhaps the default install should have one on but not the other, or make it a switch button perhaps.
Sam Chadwick
ParticipantYes. Looks like that has worked (according to the user reporting the issue). Thank you!
Sam Chadwick
ParticipantPerfect! Yes. That solved it. Somehow in the find/replace, the field suffix had been deleted. THANK YOU!
Sam Chadwick
ParticipantSteve,
The data being entered via Form is adding and updating correctly and I can see it populating the _meta table.I checked and the registerMetabox() ‘fields’=>ID value matches the settingsOption() $blocks[‘fields-id’]. The new fields have been turned on the Settings->Display.
Interestingly though, checking and unchecking entries under the “Single Entry” section appears not to change what is displayed on the cMap card-single template, where I cam using $entry->getContentBlock( ‘fields-id’ ); to display the desired values. The former “income levels” value is displayed, as are all of the values that are text, irrespective of whether they are enabled or disabled on Settings->Display.
Any other thoughts?
Unfortunately the implementation is on our intranet and so I can’t share anything.
Sam Chadwick
ParticipantThe search results are now correct but the page loads with every category available as being selected rather than just the one related to the permalink.
Sam Chadwick
ParticipantSteven,
I added the following at #L2467 and then a similar version but with the different $.out at #L2475. The permalinks appear, however the link destinations are incorrect.
Using the category search within the cMap template, the URL returned is:
http://myurl.com/?page_id=890&cn-s=&cn-cat%5B%5D=862
which works correctly, as I implemented your suggestion to enable multiple categories to be selected http://connections-pro.com/support/topic/customization-enhancements/Using the code below, the category permalink returns: http://myurl.com/category/862/ which loads the Connections page correctly, and has the correct category in the search box, but “No results found”.
Looking at the other permalinks, e.g. http://myurl.com/locality/London/ I saw that the term itself is used rather than the term_id so I tried:
‘slug’ => $category->name
But this put every category in the system in the search box (and therefore returned everything).
I did check for conflicts in the permalinks settings. Connections uses ‘category’ and WordPress uses ‘cat’.
Any suggestions?
foreach ( $categories as $category ) { $this_category = cnURL::permalink( array( 'type' => 'category', 'slug' => $category->term_id, 'title' => $category->name, 'text' => $category->name, 'home_id' => $this->directoryHome['page_id'], 'force_home' => $this->directoryHome['force_home'], 'return' => TRUE ) ); $out .= '<li class="cn_category" id="cn_category_' . $category->term_id . '">' . $this_category . ''; }Sam Chadwick
ParticipantSteve,
How can I make the categories hyperlinks to search results (in the same way that WordPress posts do)?
Thanks,
SamSam Chadwick
ParticipantPerfect!
Sam Chadwick
ParticipantInteresting. I guess nobody seems to have felt it worthwhile to create a good wiki plugin for WordPress – I just spent 30 mins or so looking. Perhaps using something like Frontier Post with a custom post type and support-oriented categories taxonomy might enable the same result to be achieved.
Sam Chadwick
ParticipantFantastic! The new template and custom submit button work like a charm.
-
AuthorPosts
