The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Links in "Both (Dynamic)" views

Labels

This Discussion is public

Notifications

The tutorial page on Views says to put this anchor text to get a link to the detailed view in a table entry:

<td><a href="[detaillink]">whatever</a></td>

In my case, the actual link that's created looks like this:

http://mydomain/detailed-visits/detailed_visits/26

But when I click it I get a NOT FOUND error.

When I go into the Entries page for the form, I can see that the entry for #26 is valid and the record that I want to display.

How are these links supposed to be structured? What am I missing?

 

Hi David,

I've had the same issue recently when i created a new dynamic view.

I went into my permalink settings page and just re-saved the permalink settings (I didn't make any changes) and then tried again and it all worked well after that.

I seemed to remember seeing that somewhere before although i can't recall where exactly. Seemed to work though.

Hope that helps.

Chris

That didn't change anything. Does it matter what permalink structure you use? I've got it set to "post name". (I tried them all, and Plain doesn't work, but the rest do the same thing, described as follows.)

However, I did something that changed the URL of the links to look like this:

http://mydomain/detailed-visits/entry/26

It's bringing up the form, but not the data for entry 26. It's empty.

If I go into the Forms -> Entries page, there's an entry for #26. I can view and edit it's contents from the admin side.

How do we view and edit from the user's side?

Hi David,

The permalink settings sound fine then so it must be something else.

So just to make sure i've got this right:

Your view short code is on your 'detailed-visits' page
The view is set up to be Dynamic (both)
Within the View > listing page you have the [detaillink] short code
When you click on the [detaillink] link, it takes you to detailed-visits/entry/26 but you get a '404 not found' error.

Could you provide a couple of screenshots of your view set-up?

For example, see attached.

Thanks

Chris

 


Attachment:

Also, what settings do you have for the 'Advanced Settings' section of the view?

See attached.

Chris


Attachment:

Hey,

Did you get to the bottom of this?

What was causing it and how did you get to a satisfactory outcome?

I'm having the same problem.

Thanks,

Phil.

Hi Phil,

What worked in the end for me was re-building my permalink structure.

To do that all you need to do is go to the permalinks settings page within Settings and click 'save'.

Hope that helps

Chris

OK, thanks Chris.  Tried that one but no improvement.

Thanks for getting back to me.

Phil.

Some further detail:

Entries are listed correctly but the [detaillink] is behaving oddly...

If the entry is set to create a post, the detaillink correctly shows the detail.

If post creation is disabled, I would expect [detaillink] to take me to a view of the entry.  Instead, it goes to a view of a different entry that doesn't even satisfy the filter conditions.

Very strange!

Further detail:

Recreated forms, views and entries.

[detaillink] now correctly generates links to /entry/[ID] etc

Setup 5 test entries.  [detaillink] is different for each one - as you would expect.

However, if you follow those links, you end up at the same entry.

Deactivated all other plugins.  Problem persists.

I thought I should do the decent thing and close out my part of this thread.  I worked with the tireless Steph at Formidable Forms who stayed with the problem until we resolved the gaps in my understanding.  Thanks Steph.  I compiled the following note but if any of it is unclear, please holler.

Here's what we did:

I needed a list of entries with a clickable link for each one to go to a detail page.

The list of entries appears in different places on the site and in each case has a slightly different filter on it to show a different set of entries.

The detail page can be set up within a “Dynamic (both)” view.  But in this case, I wanted the same set of details to be used, irrespective of which list of entries the user came from.

So instead of setting up the details multiple times, once on each Dynamic form, I needed a nested view that linked to the one “Details” view.

Then, when changes are needed to the structure/format of the details, it only needs to happen in one place.

The detail page of each dynamic view now needs to call the nested view and pass a value so Formidable knows which entry to display.

I used [display-frm-data id="2578" pass_field="[key show=value]”] in the content of the detail page of every Dynamic view.

where

2578" is the id of the nested view - in this case “Details”

pass_field="[key show=value]” sends the entry key to the nested form.

We then need to tell the nested view to accept the passed value.

This is done under “Advanced Settings” and setting a Filter where: “Entry Key” is equal to [get param=pass_field]

When I click on the detaillink it takes me to the attached page. Where could the error be?

I've done all the steps in the thread with the right href links but it's not working.


Attachment:

Discussion closed.