Help converting a functioning managed_file to D8.

I am really struggling here to work out the correct way and structure to simply save a file to a database and call it from an edit form when needed.
I have a fully working version in D7, but the point of me porting this module is to learn D8.

Could anybody please help convert the components below?
I'm quite content with the _form and db_insert code, but the submit code has me stumped...

hook__form

How to create a view contain 2 pages Grid format which one show 3 columns and one shows 4 columns

Hello all,

I would like to create create a view contain 2 pages Grid format which one show 3 columns and one shows 4 columns. My steps are:

1. Create a view page Grid format show 3 columns (ex: path is page1)
2. Add new page from this view and change to 4 columns in grid settings. (ex: path is page2)

When I have done step 2, page1 will be overriden by settings of page2. It mean, page1 now show 4 columns.

P/S: I don't want to create 2 views for this purpose.

Any suggestion will be appreciated!

Thank you.

Website, blog, and knowledgebase

I'm looking to create a website with static content, a blog with regular posts, and also a knowledgebase with different kinds of tutorials.

I'm pretty sure I can do all of this under one Drupal installation.

Could someone explain to me the best way to go about this? I would need to be able to create dynamic pages showing most recent blog posts, a search function for the knowledgebase articles and blog articles.

Unable to update drupal

I recently updated Drush and after doing so I can no longer run Drush Update. Everytime I try I get the error:

Update information last refreshed: Never
No code updates available.

I removed and reinstalled drush. I manually updated from Drupal Core 8.0.1 to 8.0.3. Still no change. When I run the Available Updates report I get the error

Failed to get available update data for 8 projects.

I have rebuilt the cache using drush cache-clear and drush cache-rebuild.

Output from drush status:

Drupal 8 for social network?

I am looking to build a small social network, but I am not sure what I should use:

  • Drupal 8
  • WordPress
  • Laravel
  • CakePHP 3
  • Something else

Can someone please advise? Thanks.

How to show head_title:SLOGAN in page <title>

Hi,
I set in site information title and slogan. Lated I have edited file html.html.twig to put site slogan in the title tag but with no success.

    <title>{{ head_title.name}}</title>

when i add
<title>{{ head_title.name, head_title.sloagn}}</title>
then tamplate is crashed. Even if i dump(head_tittle) there is no slogan.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x