Python wagtail Basic Block














































Python wagtail Basic Block



 In the previous article we have discuss about Templates.If you have not gone through it you see through this link Templates. In this article will start a new topic that is Block.          

In this article we will learn about different type of basic block in python wagtail

    Here are list of some of the basic block as provided by python wagtail
   

  • CharBlock  (wagtail.core.blocks.CharBlock)
                         A single-line text input.


  • TextBlock  (wagtail.core.blocks.TextBlock)

                 A multi-line text input

  • EmailBlock (wagtail.core.blocks.EmailBlock)
               A single-line email input that validates that the email is a valid Email Address

  • IntegerBlock (wagtail.core.blocks.IntegerBlock)
                    A single-line integer input that validates that the integer is a valid whole number


  • BooleanBlock (wagtail.core.blocks.BooleanBlock)
                 A checkbox.


  • DateBlock (wagtail.core.blocks.DateBlock)

             A date picker.

  • TimeBlock (wagtail.core.blocks.TimeBlock)
           A time picker. 

  • DateTimeBlock (wagtail.core.blocks.DateTimeBlock)
           A combined date / time picker.

  • RawHTMLBlock (wagtail.core.blocks.RawHTMLBlock )
           A text area for entering raw HTML which will be rendered unescaped in the page output.

  • ChoiceBlock (wagtail.core.blocks.ChoiceBlock)
            A dropdown select box for choosing from a list of choices.

  • MultipleChoiceBlock (wagtail.core.blocks.MultipleChoiceBlock)
            A multiple select box for choosing from a list of choices.

  • PageChooserBlock (wagtail.core.blocks.PageChooserBlock)
        A control for selecting a page object, using Wagtail's page browser. 

  • SnippetChooserBlock (wagtail.snippets.blocks.SnippetChooserBlock)

          A control to allow the editor to select a snippet object.

  • EmbedBlock (wagtail.embeds.blocks.EmbedBlock)

            A field for the editor to enter a URL to a media item  to appear as embedded media on the page

  • ImageChooserBlock (wagtail.images.blocks.ImageChooserBlock)

           A control to allow the editor to select an existing image, or upload a new one.

  • StaticBlock (wagtail.core.blocks.StaticBlock)

          A block which does't have any fields, thus passes no particular values to its template during rendering


More Articles of SAYENDEEP MAHANTY:

Name Views Likes
C++ Exception Handling-|| 67 3
C++ Exception Handling 102 3
C++ File Handling EOF 81 5
C++ File Handling Error Handling During file Operation 930 5
C++ File Handling seekp() Function 90 5
C++ File Handling seekg() Function 78 6
C++ File Handling tellg() Function 107 5
C++ File Handling tellp() Function 95 5
C++ File Handling close() Function 69 5
C++ File Handling:: open() 89 5
C++ File Handling Introduction 121 5
C++ Container Library:: std ::array-II 92 4
Top Django Interview Questions and Answers You Need to Know 264 6
C++ Container Library::std::array 85 6
C++ Container Library Introduction 94 5
Essential Engineering Skills for Your Resume 115 5
Mistakes To Avoid During Technical Interview 122 5
Mistakes You Must Avoid During Work From Home 164 6
Seven Common Mistakes that Beginners Should Avoid While Learning to Code 94 6
Simple Linear Regression 89 6
Python wagtailmenus 108 6
Python wagtail application 109 6
Python guppy GSL 119 5
Python wagtail guppy subpackage heapy 163 6
Python guppy Introduction 204 6
Python wagtail Structural Block 242 6
Python wagtail Integrating into Django Project 335 6
Python wagtail testing 265 7
Python wagtail Basic Block 315 7
Python wagtail image tag 209 7
Python wagtail Templates 167 6
Python wagtail Backends 187 6
Python wagtail Indexing 172 6
Python wagtail Search 166 7
Python wagtail Snippets 179 6
Python wagtail Writing your own page models 156 9
Python wagtail model class PageRevision 182 10
Python wagtail model class Site 191 9
Python wagtail wagtail core model 210 9
Python wagtail page models 179 10
Python wagtail 154 11

Comments