• Resolved allfrom1supply

    (@allfrom1supply)


    Okay another couple questions with my apologies for the frequency. If you look at this page https://help.allfrom1supply.com/contractor-search/painter-search/name/abr-usa/ I am trying to change the order of the page elements and can’t seem to do that from the backend despite trying to move the fieldsets around.

    My other question is how can I display an entries select categories on the profile page? For example I have a category of services how can I add a block to show the selected services i.e this company offers the following services [1,3,5]

    Thank you. The plugin is great any questions are my own boneheadedness. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    RE: I am trying to change the order of the page elements and can’t seem to do that from the backend despite trying to move the fieldsets around.

    When you mention “fieldsets”, I assume you are referring to the Fieldset Configuration tab on the Settings admin page, correct?

    If that is the case, those settings will only affect the fieldset on the Connections Manage admin page when adding or editing a directory entry. The settings will also affect the frontend Form add-on.

    The display order of the entry details is largely static and based on the single directory entry view of the template used to display the directory (Gridder in this case).

    If you navigate to the Connections Settings admin page, click the Display tab, and scroll to the Single Entry Content Block section, you can change the blocks to display and in what order. At the time of this reply, that would be the Email Entry and the Interactive Map content blocks.

    Is there something else you would like to change?

    RE: My other question is how can I display an entries select categories on the profile page? For example I have a category of services how can I add a block to show the selected services i.e this company offers the following services [1,3,5]

    Since the Gridder template design is largely focus to display profile details for individuals it does not display the attached categories.

    That said, I do have a couple options that will enable this for you.

    Here’s a code snippet that will enable the Category Content Block:

    add_filter(
    	'Connections_Directory/Content_Block/Add',
    	static function( $block ) {
    		
    		if ( 'entry-categories' === $block->getID() ) {
    			
    			$block->setProperties(
    				array(
    					'context'         => null,
    					'register_option' => true,
    					'render_heading'  => false,
    				)
    			);
    		}
    		
    		return $block;
    	}
    );

    To add this code snippet to your site, I recommend the Code Snippet plugin. Here’s the link:

    Install the Code Snippets plugin and activate it. Add a new code snippet, copy-paste the above code into the new snippet, save, and activate it.

    Alternatively, and perhaps the better solution for your site is the free developer add-on, Split Categories. Here’s the link:

    To download the add-on, click the green Code button and choose the Download Zip option. Download the zip file to your desktop, but do not unzip it.

    Navigate to the Add New Plugin admin page and click the Upload Plugin button. Choose the downloaded zip file. Activate the plugin.

    Now, navigate to the Connections Settings admin page and click the Advanced tab. Here, you will find a box with the categories listed—Control+Click on the parent categories you want to split into their sections. For example, (and I’m guessing a bit) click on the parent category for the states and Control+Click on the services parent category. Save the change.

    Navigate to the Display tab and scroll to the Single Entry Content Block section. You will see a new content block for each category parent you choose. You can enable them and change the order in which they are displayed.

    I hope this helps; please let me know.

    Thread Starter allfrom1supply

    (@allfrom1supply)

    First off, thanks for taking the time to respond.

    The item I want to move down is the Biography block where I have the images. They would like all the most important contact info first.

    Thanks for the snippet. I’m going to download the plugin you recommended and give it a shot.

    Thread Starter allfrom1supply

    (@allfrom1supply)

    Correction it is actually the notes block with a gallery inserted.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Here’s a code snippet that will add a Content Block for the Notes field.

    add_filter(
    	'cn_content_blocks',
    	static function ( $blocks ) {
    		$blocks['entry_field-notes'] = 'Notes';
    		return $blocks;
    	}
    );
    
    add_action(
    	'cn_entry_output_content-entry_field-notes',
    	static function ( $entry, $shortcode_atts, $template ) {
    		$entry->getNotesBlock();
    	},
    	10,
    	3
    );

    Save and activate this new code snippet. Afterward, you will have the option in the Settings to display the notes in the content block section in your desired order.

    You will have to turn off the display of the templates notes section:

    Add enable_note=false in the existing [connections] shortcode on the directory page. Here is an example:

    [connections enable_note=false]

    Do not add the shortcode to the page a second time; you only need a single instance.

    I hope this helps; please let me know.

    Thread Starter allfrom1supply

    (@allfrom1supply)

    Wow. You are awesome.

    That did it. ??

    Plugin Author Steven

    (@shazahm1hotmailcom)

    No problem; happy to help!

    I would genuinely appreciate a review if you have a moment, as they really make a difference.

    Thanks in advance for your time!

    Thread Starter allfrom1supply

    (@allfrom1supply)

    I just added a review. Thanks very much for your excellent product and superior support.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Enhanced Categories & Display Orders Questions’ is closed to new replies.