Forum

Thread tagged as: Question, Problem

Best way to create html within Perch

Hi,

I am new to using Perch and need a little help in creating a html table so that a client can change. I have a designer who creates the initial designs and I then do a sweep and make it so that the user can change all the test etc ..

Here is an example;

            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="tabletext">Fertility</td>

                    <td class="tabletext">Stress &amp; fatigue</td>

                    <td class="tabletext">Blood sugar problems</td>

                    <td class="tabletext">Digestive disorders</td>
                </tr>

                <tr>
                    <td class="tabletext">Aches/Pains</td>

                    <td class="tabletext">Skin problems</td>

                    <td class="tabletext">Hormonal imbalances</td>

                    <td class="tabletext">Weight loss issues</td>
                </tr>

                <tr>
                    <td class="tabletext">Allergies</td>

                    <td class="tabletext">Mental health</td>

                    <td class="tabletext">Women’s health</td>

                    <td class="tabletext">Thyroid Health</td>
                </tr>

                <tr>
                    <td class="tabletext">Food intolerances</td>

                    <td class="tabletext">Children’s Health</td>

                    <td class="tabletext">&nbsp;</td>

                    <td class="tabletext">&nbsp;</td>
                </tr>
            </table>

Any help will be appreciated.

Dennis Pickworth

Dennis Pickworth 0 points

  • 6 years ago

Dennis... Exactly what help are you looking for? Do you need a template... Or is there something not working as expected?

What APP will this need to work in?

We love to help, but more information would be great. :)

R. K

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Have a look at our video on creating a Perch template, you can create your own templates to output any HTML that you want.

https://docs.grabaperch.com/video/v/creating-a-perch-template/

You will probably find it helpful to follow the first few videos in the video tutorial: https://docs.grabaperch.com/video/swift-migrations/

Hi Guys,

Thanks for the replys. The way the designer has degined the page is by using the table to display the required information. All content in the table is editable.

Is creating a template the best way? I have created templates for other pages and it works very well. I am just struggling to visualise how a table works.

Many Thanks

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Creating a template is how you edit content in Perch, so that would be the way to do it. If the number of rows and columns is fixed then just create a template that allows them to enter data into each cell.

If it is not then you can use a Repeater for each row: https://docs.grabaperch.com/docs/templates/repeaters/

Ok, Thanks for all the advice.

I have used a template and repeaters and it is amazing.

The more I use Perch the more I Love it.

Thanks for all the advice.