Navigation überspringen

[Gelöst] Questions related to content template for the edit form

This support ticket is created vor 5 Jahre. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von WeiS2074 vor 4 Jahre, 12 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1758659

Here is my structure. Custom type:Stock, Repeated field under Stock: Wine Stock

Template to display sigle "Stock" (versteckter Link)
it contains:
1. "Field and Text",
2. "Edit" link (versteckter Link)
In this template, it has "stock" edit form and repeated field group edit form

3. a view "Stock-Repeated-wine stock view" (versteckter Link)
Inside this view, it uses a template to display the repeated fields (named "Stock-inner-wine stock", url versteckter Link)

Question
1. in the "edit" link template, How can I hide the Stock form? I just want user only to see and edit repeated field group. I can't remore stock form from the template, otherwise the "Edit" link won't show on the front-end.
2. when I click into the edit link, for example versteckter Link I add a record here. Why in the front end it shows different format. The field I added from WordPress admin it has grey background. The field I added fron edit link doesn't have grey background.

#1759107

Hi,

Thank you for waiting.

1. in the "edit" link template, How can I hide the Stock form? I just want user only to see and edit repeated field group. I can't remore stock form from the template, otherwise the "Edit" link won't show on the front-end.

- To hide the second form on the page (i.e. "Edit Stock"), you can include the following CSS code in the "Edit Stock" content template's "CSS editor":
( screenshot: versteckter Link )


.entry-content .wp-block-toolset-cred-form:nth-of-type(2) {
    display: none;
}

2. when I click into the edit link, for example versteckter Link I add a record here. Why in the front end it shows different format. The field I added from WordPress admin it has grey background. The field I added fron edit link doesn't have grey background.

- I think we've discussed this point in another ticket as well.

If you'll go to the edit screen of the post "NSW-Sydney-Blacktown" and check the "RP-Stock-Wine" field entries in the repeating field groups, you'll see that the ones which are showing with a grey background have "Preformatted" style selected.
( screenshot: versteckter Link )

As a result, text from those fields is shown in the front-end wrapped inside the "pre" tag. To fix, you can select "paragraph" formatting for the text in those fields too.

regards,
Waqar

#1760263

We haven't discussed this point before. Last similar is that the text doesn't have line break. Yes, both of them are caused by "Paragraph" and "preformatted", but they are different issue.

Actually I found that it is able to use "Block" to display repeated field group in an archive. So that I don't have to spend time to learn "View". I don't complain. it is all good now.

Thank you.