Load Drupal as Package (D8.1)

I want to load drupal as a package within another.

/admin/index.php
/index.php
/packages/drupal/

Calls to index.php or /admin/index.php would do things that may include loading drupal and performing a route request. Any response would need to have the correct path translations relative to / with no paths leading to /packages/drupal except for possibly dynamic site data.

Conversion of Existing Site Theme to Drupal 8

Good day,
From what I have read, there is NO easy way of using an existing theme from Drupal 6.x to Drupal 8. It would seem easier to find a Drupal 8 theme that is released and try use it as a basic template. This was built as a sub-theme version of ZEN. It appears that there is no Drupal 8 version of Zen. Does anyone know the best Drupal 8 theme that could be used?

Many thanks.

Drupal 8 use of method.

Hi I m using function THEME_preprocess to edit Drupal 8 theme.
I have hard problems to use Drupal Method so I am using my custom class to
obtain info by DB.
It' s not better way but I need to solve some problem.

I don' t understand by documentation
how get info of main_menu

User e-mail access in views without administer permission

Hi,

I've created a new view in D8 for user listing. User's e-mail address and last access information is only shown when current user has administer users permission. That's a view for authenticated users, not for admins, so I don't want grant this permission to all authenticated users. How can achieve this?

Thank's

How to include add/remove buttons for some fields using drupal 8 form API ?

I have a flight ticket booking drupal 8 form which has the following:

1)From
2)To
3)Date

I need to include two buttons namely "Add" and "Remove" which will add/remove the above mentioned fields in my form.

For example, if my form initially has three fields(From,To,Date) upon load, then by clicking "Add" button, I should be able to see another set of these fields while the first ones still persist.

Please help me out...

Thanks,
Ramesh S

Problem loading images inside a drupal table

Hi all,
I need to show images for each row inside a drupal table. These images are Base64 coded and I'm trying to use the following code

$content = "data:image/jpeg;base64, ".$image_flow;

$form['table']['row'.$key] = [
			'imgList' => [
					'#type' => 'item',
					'#markup' => '<img src="'.$content.'" alt="Icon software" class="img_details"> ',
			]
];	

The content "data:" disappears when the form has been built, so the images are not displayed.
No issues found using twig way.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x